fn decodeLiteralsSectionSlice(src: []const u8, consumed_count: *usize) error{MalformedLiteralsHeader, MalformedLiteralsSection, EndOfStream} || huffman.Error!LiteralsSection
[src]
Decode a LiteralsSection
from src
, incrementing consumed_count
by the number of bytes the section uses.
Errors returned:
error.MalformedLiteralsHeader
if the header is invaliderror.MalformedLiteralsSection
if there are decoding errorserror.MalformedAccuracyLog
if compressed literals have invalid accuracyerror.MalformedFseTable
if compressed literals have invalid FSE tableerror.MalformedHuffmanTree
if there are errors decoding a Huffamn treeerror.EndOfStream
if there are not enough bytes insrc