(cls, f)
| 84 | |
| 85 | @classmethod |
| 86 | def stream_deserialize(cls, f): |
| 87 | c = cls() |
| 88 | c.type = struct.unpack(b"<i", ser_read(f, 4))[0] |
| 89 | c.hash = ser_read(f, 32) |
| 90 | return c |
| 91 | |
| 92 | def stream_serialize(self, f): |
| 93 | f.write(struct.pack(b"<i", self.type)) |
no test coverage detected