D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
alt
/
ruby26
/
lib64
/
ruby
/
gems
/
2.6.0
/
doc
/
rackup-2.1.0
/
ri
/
Rackup
/
Stream
/
Reader
/
Filename :
read-i.ri
back
Copy
U:RDoc::AnyMethod[iI" read:ETI" Rackup::Stream::Reader#read;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [ I"Gread behaves like IO#read. Its signature is read([length, [buffer]]). If given, length must be a non-negative Integer (>= 0) or nil, and buffer must be a String and may not be nil. If length is given and not nil, then this method reads at most length bytes from the input stream. If length is not given or nil, then this method reads all data until EOF. When EOF is reached, this method returns nil if length is given and not nil, or “” if length is not given or is nil. If buffer is given, then the read data will be placed into buffer instead of a newly created String object. ;TI"8@param length [Integer] the amount of data to read ;TI"C@param buffer [String] the buffer which will receive the data ;TI")@return a buffer containing the data;T: @fileI"lib/rackup/stream.rb;T:0@omit_headings_from_table_of_contents_below000[ I"!(length = nil, buffer = nil);T@FI"Reader;TcRDoc::NormalModule00