Skip to content

data_model.py

ofrak.model.data_model

DataModel dataclass

DataModel(id: bytes, range: ofrak_type.range.Range, alignment: int = 1, parent_id: Union[bytes, NoneType] = None)

DataMove dataclass

DataMove(range: ofrak_type.range.Range, data_id: bytes, after_data_id: Union[bytes, NoneType] = None, before_data_id: Union[bytes, NoneType] = None)

DataPatch dataclass

DataPatch(range: ofrak_type.range.Range, data_id: bytes, data: bytes, after_data_id: Union[bytes, NoneType] = None, before_data_id: Union[bytes, NoneType] = None)

DataPatchRef dataclass

DataPatchRef(range: ofrak_type.range.Range, data_id: bytes)

DataPatchResult dataclass

DataPatchResult(range: ofrak_type.range.Range, size_change: int, child_index: int, child_relative_position: ofrak.model.data_model.DataRangePosition)

DataPatchesResult dataclass

DataPatchesResult(data_id: bytes, patches: List[ofrak.model.data_model.DataPatchResult])

DataRangePosition (IntEnum)

An enumeration.