MCPcopy Index your code
hub / github.com/petertodd/python-bitcoinlib / stream_deserialize

Method stream_deserialize

bitcoin/core/__init__.py:227–230  ·  view source on GitHub ↗
(cls, f)

Source from the content-addressed store, hash-verified

225
226 @classmethod
227 def stream_deserialize(cls, f):
228 nValue = struct.unpack(b"<q", ser_read(f,8))[0]
229 scriptPubKey = script.CScript(BytesSerializer.stream_deserialize(f))
230 return cls(nValue, scriptPubKey)
231
232 def stream_serialize(self, f):
233 f.write(struct.pack(b"<q", self.nValue))

Callers

nothing calls this directly

Calls 2

ser_readFunction · 0.85
stream_deserializeMethod · 0.45

Tested by

no test coverage detected