Skip to main content

MAGIC

Constant MAGIC 

Source
pub const MAGIC: [u8; 4];
Expand description

Magic bytes that prefix every stabilized cache entry.

An ASCII tag (0x4C 0x43 0x45 0x31) chosen so it cannot collide with any pre-stabilization blob: those began with either a small little-endian length (tens of bytes) or a small tag byte, never these values.

Exported so backends can cheaply identify Lance cache entries (e.g. when scanning a persistent store at startup) without hardcoding the bytes — prefer has_cache_envelope over comparing against this directly.