fn decodeLiteralsSectionSlice(src: []const u8, consumed_count: *usize) error{MalformedLiteralsHeader, MalformedLiteralsSection, EndOfStream} || huffman.Error!LiteralsSection

Decode a LiteralsSection from src, incrementing consumed_count by the number of bytes the section uses.

Errors returned:

  • error.MalformedLiteralsHeader if the header is invalid
  • error.MalformedLiteralsSection if there are decoding errors
  • error.MalformedAccuracyLog if compressed literals have invalid accuracy
  • error.MalformedFseTable if compressed literals have invalid FSE table
  • error.MalformedHuffmanTree if there are errors decoding a Huffamn tree
  • error.EndOfStream if there are not enough bytes in src

Parameters

src: []const u8,
consumed_count: *usize,