pub fn decode_payload(encoding: u32, bytes: &[u8]) -> Result<Cow<'_, [u8]>>Expand description
Decode a section payload from its on-disk encoding to the logical bytes
a reader consumes, via the wire-codec registry. For raw this is a
borrow; for zstd an owned decompressed buffer. The zstd_dict (id 5)
codec needs the shared dictionary (section 0x0A) and is decoded via
decode_payload_with_dict, so it is rejected here. Unknown or
reserved-but-unimplemented encodings are rejected.