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

Method writeBool

lib/py/src/protocol/TJSONProtocol.py:546–547  ·  view source on GitHub ↗
(self, boolean)

Source from the content-addressed store, hash-verified

544 self.writeJSONArrayEnd()
545
546 def writeBool(self, boolean):
547 self.writeJSONNumber(1 if boolean is True else 0)
548
549 def writeByte(self, byte):
550 checkIntegerLimits(byte, 8)

Callers 1

Calls 1

writeJSONNumberMethod · 0.80

Tested by 1