#[repr(C)]pub struct CowMapHeader {
pub magic: u32,
pub version: u16,
pub map_format: u8,
pub compression_policy: u8,
pub cluster_size_bytes: u32,
pub vectors_per_cluster: u32,
pub base_file_id: [u8; 16],
pub base_file_hash: [u8; 32],
}Expand description
64-byte header for COW_MAP_SEG payloads.
Follows the standard 64-byte SegmentHeader. All multi-byte fields are
little-endian on the wire.
Fields§
§magic: u32Magic: COWMAP_MAGIC (0x5256434D, “RVCM”).
version: u16CowMapHeader format version (currently 1).
map_format: u8Map storage format (see MapFormat).
compression_policy: u8Compression policy for COW clusters.
cluster_size_bytes: u32Cluster size in bytes (must be power of 2, SIMD aligned).
vectors_per_cluster: u32Number of vectors per cluster.
base_file_id: [u8; 16]UUID of the base (parent) file.
base_file_hash: [u8; 32]SHAKE-256-256 hash of the base file.
Implementations§
Trait Implementations§
Source§impl Clone for CowMapHeader
impl Clone for CowMapHeader
Source§fn clone(&self) -> CowMapHeader
fn clone(&self) -> CowMapHeader
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CowMapHeader
impl Debug for CowMapHeader
impl Copy for CowMapHeader
Auto Trait Implementations§
impl Freeze for CowMapHeader
impl RefUnwindSafe for CowMapHeader
impl Send for CowMapHeader
impl Sync for CowMapHeader
impl Unpin for CowMapHeader
impl UnwindSafe for CowMapHeader
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more