Skip to main content

encode_entry

Function encode_entry 

Source
pub fn encode_entry(
    meta: CacheEntryMeta,
    body: &[u8],
) -> Result<Vec<u8>, EntryError>
Expand description

Encode a whole entry in memory.

ยงErrors

Returns an error when the metadata cannot be serialised or is too large.