module documentation

Undocumented

Function is_simple Check if a type is a 'simple' type.
Constant SIMPLE_TYPES Undocumented
Constant SIMPLE_TYPES_DICT Undocumented
def is_simple(type_):

Check if a type is a 'simple' type.

Returns
True if type is a 'simple' type, i.e. is of fixed/known serialization length. This is effectively all primitive types except for string, bool
SIMPLE_TYPES =

Undocumented

Value
list(SIMPLE_TYPES_DICT.keys())
SIMPLE_TYPES_DICT: dict[str, str] =

Undocumented

Value
{'int8': 'b',
 'uint8': 'B',
 'bool': 'B',
 'int16': 'h',
 'uint16': 'H',
 'int32': 'i',
 'uint32': 'I',
...