pub fn serialize_chunk_artifact(
key: &CacheKey,
chunk: &Chunk,
) -> Result<Vec<u8>>Expand description
Serialize an entry-chunk artifact (header + payload) to bytes. The
resulting buffer is byte-identical to the file store_at would
have written for the same (key, chunk). Use this when packaging
artifacts into a container (e.g. harn pack) without going through
the filesystem.