# File lib/thrift/transport/io_stream_transport.rb, line 27 def initialize(input, output) @input = input @output = output end
# File lib/thrift/transport/io_stream_transport.rb, line 35 def close; @input.close; @output.close end
# File lib/thrift/transport/io_stream_transport.rb, line 32 def open?; not @input.closed? or not @output.closed? end
# File lib/thrift/transport/io_stream_transport.rb, line 33 def read(sz); @input.read(sz) end
# File lib/thrift/transport/io_stream_transport.rb, line 36 def to_io; @input end
# File lib/thrift/transport/io_stream_transport.rb, line 34 def write(buf); @output.write(Bytes.force_binary_encoding(buf)) end