- <init>
Create a TCompactProtocol.
- readBinary
Read a byte[] of a known length from the wire.
- bytesToLong
Note that it's important that the mask bytes are long literals, otherwise
they'll default to ints, a
- fixedLongToBytes
Convert a long into little-endian bytes in buf starting at off and going until
off+7.
- getCompactType
Given a TType value, find the appropriate TCompactProtocol.Types constant.
- getTType
Given a TCompactProtocol.Types constant, convert it to its corresponding TType
value.
- intToZigZag
Convert n into a zigzag int. This allows negative numbers to be represented
compactly as a varint.
- isBoolType
- readByte
Read a single byte off the wire. Nothing interesting here.
- readI16
Read an i16 from the wire as a zigzag varint.
- readListBegin
Read a list header off the wire. If the list size is 0-14, the size will be
packed into the element
- readString
Reads a byte[] (via readBinary), and then UTF-8 decodes it.