fn init(frame_header: ZstandardHeader, window_size_max: usize, verify_checksum: bool) Error!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)

Parameters

frame_header: ZstandardHeader,
window_size_max: usize,
verify_checksum: bool,