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

Function deserialize_immutable

test/py/explicit_module/EnumSerializationTest.py:31–36  ·  view source on GitHub ↗
(base,
                          buf,
                          protocol_factory=TBinaryProtocol.TBinaryProtocolFactory())

Source from the content-addressed store, hash-verified

29
30
31def deserialize_immutable(base,
32 buf,
33 protocol_factory=TBinaryProtocol.TBinaryProtocolFactory()):
34 transport = TTransport.TMemoryBuffer(buf)
35 protocol = protocol_factory.getProtocol(transport)
36 return base.read(protocol)
37
38
39def serialization_deserialization_struct_enum_test():

Calls 3

getProtocolMethod · 0.65
readMethod · 0.65
TMemoryBufferMethod · 0.45

Tested by

no test coverage detected