class documentation

Converter for data sections best interpreted as strings

Strings are encoded in latin-1.

Class Method get Converts bytes -> str
Class Method set Converts str -> bytes
@classmethod
def get(cls, data: bytes, **kwargs) -> _T: (source)

Converts bytes -> str

Parameters
data:bytesThe raw bytes to convert
**kwargsUndocumented
Returns
_TThe latin-1 decoding of data with trailing null bytes removed
@classmethod
def set(cls, value: _T, **kwargs) -> bytes: (source)

Converts str -> bytes

Parameters
value:_TThe value to convert
**kwargsUndocumented
Returns
bytesThe latin-1 encoding of value