class documentation

Converter to split flash data into blocks if stored in Intel format

If binary_flag != $01, this converter is a no-op on bytes. Otherwise, this converter manipulates list[TIFlashBlock].

Class Method get Converts bytes -> bytes | list[TIFlashBlock]
Class Method set Converts bytes | list[TIFlashBlock] -> bytes
Constant _T Undocumented
@classmethod
def get(cls, data: bytes, *, instance=None) -> _T: (source)

Converts bytes -> bytes | list[TIFlashBlock]

Parameters
data:bytesThe raw bytes to convert
instanceThe instance which contains the data section
Returns
_TThe blocks stored in data
@classmethod
def set(cls, value: _T, *, instance=None, **kwargs) -> bytes: (source)

Converts bytes | list[TIFlashBlock] -> bytes

Parameters
value:_TThe value to convert
instanceThe instance which contains the data section
**kwargsUndocumented
Returns
bytesThe concatenation of the blocks in value

Undocumented

Value
bytes | list[TIFlashBlock]