class documentation

class SizedData(Data): (source)

View In Hierarchy

No-op converter for sized data sections with associated metadata

The following metadata fields are automatically set by this converter:

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

Inherited from Bytes (via Data):

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

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