Method: Thrift::BinaryProtocol#read_byte
- Defined in:
- lib/thrift/protocol/binary_protocol.rb
#read_byte ⇒ Object
176 177 178 179 180 181 182 |
# File 'lib/thrift/protocol/binary_protocol.rb', line 176 def read_byte val = trans.read_byte if (val > 0x7f) val = 0 - ((val - 1) ^ 0xff) end val end |