class

Thrift::Transport::BufferedTransport

Inherits IO::Buffered < Thrift::Transport::BaseTransport < IO < Reference < Object

BufferedTransport wraps around any transport and makes them buffered

Constructors

Instance methods

open?
Source
to_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.

Source
unbuffered_close

Closes the wrapped IO.

TODO: Add return type restriction Nil

Source
unbuffered_flush

Flushes the wrapped IO.

TODO: Add return type restriction Nil

Source
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

Source
unbuffered_rewind

Rewinds the wrapped IO.

TODO: Add return type restriction Nil

Source
unbuffered_write(slice : Bytes)

Writes slice entirely into the wrapped IO.

TODO: Add return type restriction Nil

Source