Skip to main content

has_cache_envelope

Function has_cache_envelope 

Source
pub fn has_cache_envelope(data: &[u8]) -> bool
Expand description

Returns true if data begins with the cache-entry MAGIC.

A cheap prefix check for backends that need to recognize Lance cache entries without fully deserialize-ing them. A true result only means the framing looks like ours; the entry can still decode to a Miss (e.g. wrong type_id).