Method: Thrift::BaseTransport#read_byte

Defined in:
lib/thrift/transport/base_transport.rb

#read_byteObject

Returns an unsigned byte as a Fixnum in the range (0..255).



66
67
68
69
# File 'lib/thrift/transport/base_transport.rb', line 66

def read_byte
  buf = read_all(1)
  return Bytes.get_string_byte(buf, 0)
end