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

Method writeBool

lib/py/src/protocol/TBinaryProtocol.py:105–109  ·  view source on GitHub ↗
(self, bool)

Source from the content-addressed store, hash-verified

103 pass
104
105 def writeBool(self, bool):
106 if bool:
107 self.writeByte(1)
108 else:
109 self.writeByte(0)
110
111 def writeByte(self, byte):
112 buff = pack("!b", byte)

Callers 2

testNakedFunction · 0.95
testFieldFunction · 0.95

Calls 1

writeByteMethod · 0.95

Tested by

no test coverage detected