Fields

hasher_opt: ?std.hash.XxHash64,
window_size: usize,
has_checksum: bool,
block_size_max: usize,
content_size: ?usize,

Functions

fn init(frame_header: ZstandardHeader, window_size_max: usize, verify_checksum: bool) Error!FrameContext

Validates frame_header and returns the associated FrameContext.

Validates frame_header and returns the associated FrameContext.

Errors returned:

  • error.DictionaryIdFlagUnsupported if the frame uses a dictionary
  • error.WindowSizeUnknown if the frame does not have a valid window size
  • error.WindowTooLarge if the window size is larger than window_size_max
  • error.ContentSizeTooLarge if the frame header indicates a content size larger than std.math.maxInt(usize)