class documentation

class Data(Bytes): (source)

Known subclasses: tivars.data.SizedData

View In Hierarchy

No-op converter for data sections with associated metadata

The following metadata fields are automatically set by this converter:

  • Version
Class Method set Converts bytes -> bytes and updates metadata fields

Inherited from Bytes:

Class Method get Converts bytes -> bytes (no-op)
@classmethod
def set(cls, value: _T, *, instance=None, **kwargs) -> _T: (source)
overridden in tivars.data.SizedData

Converts bytes -> bytes and updates metadata fields

Parameters
value:_TThe value to convert
instanceThe instance which contains the data section
**kwargsUndocumented
Returns
_TThe bytes in value, unchanged