Skip to content
instance method

OpenSSL::Buffering#read

(?::Integer? size, ?::String buf) -> ::String?
read(size=nil, buf=nil)

Reads size bytes from the stream. If buf is provided it must reference a string which will receive the data.

See IO#read for full details.

See also #puts #readbyte #printf #readchar also in 4.1 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0