DataType¶
- class picopod.DataType(*values)¶
Bases:
EnumUserdata data types.
- U8 = 1¶
Unsigned 8-bit integers.
- I16 = 2¶
Signed 16-bit integers.
- I32 = 3¶
Signed 32-bit integers.
- I64 = 4¶
Signed 64-bit integers.
- F64 = 5¶
64-bit floating-point numbers.
- static parse(s)¶
Parse a userdata type string.
For consistency with Picotron, this accepts both signed and unsigned forms for each size and converts to the closest match. (For example,
i8becomesu8, butu16becomesi16.)- Parameters:
s (str) – The string to parse.
- Returns:
The parsed
DataType.- Raises:
UnrecognizedTypeError – The string does not match a known data type.