(self, buffer: bytearray)
| 291 | restrictions: List[CRestriction] = field(default_factory=list) |
| 292 | |
| 293 | def to_bytes(self, buffer: bytearray): |
| 294 | buffer.extend(struct.pack("<B", len(self.restrictions))) |
| 295 | buffer.extend(struct.pack("<B", 1 if len(self.restrictions) > 0 else 0)) |
| 296 | AlignWrite(buffer, 4) |
| 297 | for restriction in self.restrictions: |
| 298 | restriction.to_bytes(buffer) |
| 299 | |
| 300 | |
| 301 | @dataclass |
no test coverage detected