MCPcopy Create free account
hub / github.com/ElementsProject/elements / deserialize

Method deserialize

test/functional/test_framework/messages.py:376–378  ·  view source on GitHub ↗
(self, f)

Source from the content-addressed store, hash-verified

374 return self.hash == 0 and self.n == 4294967295
375
376 def deserialize(self, f):
377 self.hash = deser_uint256(f)
378 self.n = struct.unpack("<I", f.read(4))[0]
379
380 def serialize(self):
381 r = b""

Callers

nothing calls this directly

Calls 2

deser_uint256Function · 0.70
readMethod · 0.45

Tested by

no test coverage detected