dolor.types.misc¶
Miscellaneous types.
- class EmptyType[source]¶
Bases:
dolor.types.type.TypeA type of no value.
It always unpacks to
Noneand always packs tob"".Users should not have to explicitly use this type; it is just useful for things like
VersionSwitchedTypefor instance, which uses this type when a packet attribute doesn’t exist for a certain version.
- class RawByte[source]¶
Bases:
dolor.types.type.TypeA single byte of data.
The main reason this exists is to be used along with
Array, for which this type is special-cased to produce abytearrayvalue.
- class StructType[source]¶
Bases:
dolor.types.type.TypeA wrapper over
struct.pack()andstruct.unpack().- fmt¶
The format string for the structure, not including the endianness prefix.
- Type
str