Thrift::Transport::BufferedTransport
Inherits IO::Buffered < Thrift::Transport::BaseTransport < IO < Reference < Object
BufferedTransport wraps around any transport and makes them buffered
Constructors
new(transport : Thrift::Transport::BaseTransport)
SourceInstance methods
open?
Sourceto_s
Returns a nicely readable and concise string representation of this object, typically intended for users.
This method should usually not be overridden. It delegates to
#to_s(IO) which can be overridden for custom implementations.
Also see #inspect.
unbuffered_read(slice : Bytes)
Reads at most slice.size bytes from the wrapped IO into slice.
Returns the number of bytes read.
TODO: Add return type restriction Int32
unbuffered_write(slice : Bytes)
Writes slice entirely into the wrapped IO.
TODO: Add return type restriction Nil