MCPcopy Create free account
hub / github.com/apache/thrift / __writeI16

Method __writeI16

lib/py/src/protocol/TCompactProtocol.py:218–219  ·  view source on GitHub ↗
(self, i16)

Source from the content-addressed store, hash-verified

216 self.trans.write(pack('!b', byte))
217
218 def __writeI16(self, i16):
219 self.__writeVarint(makeZigZag(i16, 16))
220
221 def __writeSize(self, i32):
222 self.__writeVarint(i32)

Callers 1

__writeFieldHeaderMethod · 0.95

Calls 2

__writeVarintMethod · 0.95
makeZigZagFunction · 0.85

Tested by

no test coverage detected