(cls, f)
| 135 | |
| 136 | @classmethod |
| 137 | def stream_deserialize(cls, f): |
| 138 | c = cls() |
| 139 | c.nVersion = struct.unpack(b"<i", ser_read(f,4))[0] |
| 140 | c.nRelayUntil = struct.unpack(b"<q", ser_read(f,8))[0] |
| 141 | c.nExpiration = struct.unpack(b"<q", ser_read(f,8))[0] |
| 142 | c.nID = struct.unpack(b"<i", ser_read(f,4))[0] |
| 143 | c.nCancel = struct.unpack(b"<i", ser_read(f,4))[0] |
| 144 | c.setCancel = intVectorSerializer.deserialize(f) |
| 145 | c.nMinVer = struct.unpack(b"<i", ser_read(f,4))[0] |
| 146 | c.nMaxVer = struct.unpack(b"<i", ser_read(f,4))[0] |
| 147 | c.setSubVer = intVectorSerializer.deserialize(f) |
| 148 | c.nPriority = struct.unpack(b"<i", ser_read(f,4))[0] |
| 149 | c.strComment = VarStringSerializer.deserialize(f) |
| 150 | c.strStatusBar = VarStringSerializer.deserialize(f) |
| 151 | c.strReserved = VarStringSerializer.deserialize(f) |
| 152 | return c |
| 153 | |
| 154 | def stream_serialize(self, f): |
| 155 | f.write(struct.pack(b"<i", self.nVersion)) |
nothing calls this directly
no test coverage detected