| 384 | |
| 385 | @dataclass |
| 386 | class CColumnGroupArray: |
| 387 | aGroupArray: List[CColumnGroup] = field(default_factory=list) |
| 388 | |
| 389 | def to_bytes(self, buffer: bytearray): |
| 390 | buffer.extend(struct.pack("<I", len(self.aGroupArray))) |
| 391 | for group in self.aGroupArray: |
| 392 | group.to_bytes(buffer) |
| 393 | |
| 394 | |
| 395 | # Only the necessary strcuts are included for coercion |