Expand description
Custom binary format for physics field data.
Provides a compact binary representation with a fixed header, run-length encoding (RLE) for float sequences, CRC32 checksums, and integrity verification.
Structs§
- Binary
Header - Header for a binary physics field record.
- RleRun
- A run in the RLE encoding:
(value, count).
Enums§
- Field
Data Type - Data type tag stored in the header.
Constants§
- FORMAT_
VERSION - Current format version.
- MAGIC
- Magic bytes that identify a physics binary field file.
Functions§
- checksum_
crc32 - Compute a CRC32 checksum of the given byte slice.
- compress_
rle - Run-length encode a
f64slice. - decompress_
rle - Decompress RLE runs back into a
f64Vec. - read_
binary_ field - Read and validate a binary field written by
write_binary_field. - verify_
integrity - Verify that
datamatches the expectedchecksum. - write_
binary_ field - Write a
f64field with a binary header.