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

Method _serialize

test/py/SerializationTest.py:195–199  ·  view source on GitHub ↗
(self, obj)

Source from the content-addressed store, hash-verified

193 )
194
195 def _serialize(self, obj):
196 trans = TTransport.TMemoryBuffer()
197 prot = self.protocol_factory.getProtocol(trans)
198 obj.write(prot)
199 return trans.getvalue()
200
201 def _deserialize(self, objtype, data):
202 prot = self.protocol_factory.getProtocol(TTransport.TMemoryBuffer(data))

Callers 15

testForwardsMethod · 0.95
testBackwardsMethod · 0.95
testSerializeV1Method · 0.95
testSerializeV2Method · 0.95
testBoolsMethod · 0.95
testLargeDeltasMethod · 0.95
testNestedListsI32x2Method · 0.95
testNestedListsI32x3Method · 0.95
testNestedMixedx2Method · 0.95
testNestedListsBonkMethod · 0.95
testListBonksMethod · 0.95
testCompactStructMethod · 0.95

Calls 4

getvalueMethod · 0.95
getProtocolMethod · 0.65
writeMethod · 0.65
TMemoryBufferMethod · 0.45

Tested by

no test coverage detected