MCPcopy
hub / github.com/petertodd/python-bitcoinlib / stream_deserialize

Method stream_deserialize

bitcoin/net.py:106–110  ·  view source on GitHub ↗
(cls, f)

Source from the content-addressed store, hash-verified

104
105 @classmethod
106 def stream_deserialize(cls, f):
107 c = cls()
108 c.nVersion = struct.unpack(b"<i", ser_read(f, 4))[0]
109 c.vHave = uint256VectorSerializer.stream_deserialize(f)
110 return c
111
112 def stream_serialize(self, f):
113 f.write(struct.pack(b"<i", self.nVersion))

Callers

nothing calls this directly

Calls 2

ser_readFunction · 0.90
stream_deserializeMethod · 0.45

Tested by

no test coverage detected