Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
test_TJSONProtocol_write
Method · 0.95
Calls
1
writeJSONNumber
Method · 0.80
Tested by
1
test_TJSONProtocol_write
Method · 0.76