fn init(frame_header: ZstandardHeader, window_size_max: usize, verify_checksum: bool) Error!FrameContext
[src]
Validates frame_header
and returns the associated FrameContext
.
Errors returned:
error.DictionaryIdFlagUnsupported
if the frame uses a dictionaryerror.WindowSizeUnknown
if the frame does not have a valid window sizeerror.WindowTooLarge
if the window size is larger thanwindow_size_max
error.ContentSizeTooLarge
if the frame header indicates a content size larger thanstd.math.maxInt(usize)