Skip to content

c_adt

Classes:

CADT dataclass

CADT(reader: SectorReadHelper)

Attributes:

Source code
26
27
28
29
30
31
32
33
34
35
def __init__(self, reader: SectorReadHelper):
    reader._goto_sector_ptr(0x00E0)
    self.vob_count, _, end = reader._unpack_byte(2, 2, 4)

    self.cell_adr_table = list[CellAdr]()
    cnt = (end + 1 - 6) // 12

    for _ in range(cnt):
        vob_id, cell_id, __, start_sector, last_sector = reader._unpack_byte(2, 1, 1, 4, 4)
        self.cell_adr_table.append(CellAdr(vob_id, cell_id, start_sector, last_sector))

cell_adr_table instance-attribute

cell_adr_table: list[CellAdr] = list[CellAdr]()

vob_count instance-attribute

vob_count: int

CellAdr dataclass

CellAdr(vob_id: int, cell_id: int, start_sector: int, last_sector: int)

Attributes:

cell_id instance-attribute

cell_id: int

last_sector instance-attribute

last_sector: int

start_sector instance-attribute

start_sector: int

vob_id instance-attribute

vob_id: int