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

Method msg_deser

bitcoin/messages.py:461–466  ·  view source on GitHub ↗
(cls, f, protover=PROTO_VERSION)

Source from the content-addressed store, hash-verified

459
460 @classmethod
461 def msg_deser(cls, f, protover=PROTO_VERSION):
462 c = cls()
463 c.message = VarStringSerializer.stream_deserialize(f)
464 c.ccode = struct.unpack(b"<c", ser_read(f,1))[0]
465 c.reason = VarStringSerializer.stream_deserialize(f)
466 return c
467
468 def msg_ser(self, f):
469 VarStringSerializer.stream_serialize(self.message, f)

Callers

nothing calls this directly

Calls 2

ser_readFunction · 0.85
stream_deserializeMethod · 0.45

Tested by

no test coverage detected