Expand description
§Shared helpers for on-disk structures
Little-endian writer functions for placing typed values into raw byte buffers at known offsets, and a raw CRC32C matching the kernel’s format.
Functions§
- csum_
tree_ block - Recompute the CRC32C checksum of a tree block and write it into the header.
- raw_
crc32c - Raw CRC32C matching the kernel’s
crc32c()function. - write_
le_ u16 - Write a little-endian u16 into
bufat byte offsetoff. - write_
le_ u32 - Write a little-endian u32 into
bufat byte offsetoff. - write_
le_ u64 - Write a little-endian u64 into
bufat byte offsetoff. - write_
uuid - Write a UUID (16 bytes) into
bufat byte offsetoff.