hbutils.binary

Binary data serialization and deserialization utilities.

This module provides a unified interface for binary serialization and deserialization utilities implemented in the following submodules:

All public interfaces from the submodules are re-exported, enabling consumers to import the most common binary types and helpers directly from hbutils.binary.

Example:

>>> from hbutils.binary import CBoolType
>>> import io
>>> c_bool = CBoolType(1)
>>> with io.BytesIO(b'\x01\x00') as file:
...     c_bool.read(file), c_bool.read(file)
(True, False)

Note

The actual public API depends on the contents of the imported submodules. Refer to each submodule’s documentation for detailed usage and type-specific behaviors.