Skip to main content

Module binary_format

Module binary_format 

Source
Expand description

HDF5-inspired binary format for simulation checkpoints and time series data.

The OxiFile format stores hierarchical groups of typed datasets with attributes, serialized to a compact binary representation.

Structs§

Attribute
A named metadata attribute attached to a dataset or group.
BinaryMesh
A minimal binary triangle mesh representation.
BinaryParticleData
Compact binary storage for particle data (positions + optional scalars).
Dataset
A named, typed, shaped array of raw bytes with optional attributes.
DatasetShape
Describes the shape (dimensions) of a dataset.
Group
A named container that holds datasets, subgroups, and attributes.
OxiFile
Root container for the OxiPhy binary file format.
SimulationCheckpoint
High-level helper for writing physics simulation checkpoint data.

Enums§

AttributeValue
Possible values for an attribute.
DataType
Supported element types for datasets.
Endianness
Which byte order a binary stream uses.
FormatVersion
Supported OxiFile format versions.

Functions§

read_string
Reads a length-prefixed UTF-8 string, advancing pos.
read_u32
Reads a u32 in little-endian format, advancing pos.
read_u64
Reads a u64 in little-endian format, advancing pos.
rle_compress_f64
Very simple run-length compression for f64 arrays.
rle_decompress_f64
Decompress a run-length encoded f64 array.
write_string
Appends a length-prefixed UTF-8 string (u32 length + bytes).
write_u32
Appends a u32 in little-endian format.
write_u64
Appends a u64 in little-endian format.