pub fn decode_v2<C: CacheCodec>(
bytes: &[u8],
codec: &C,
) -> Result<CacheRead, CacheError>Expand description
Decodes an envelope written by this release.
Fails if the header is absent, if the format version is unknown, or if byte
4 does not name C’s CacheCodec::CODEC_ID — an unrecognised codec id is
reported rather than guessed at.