Function readInitialFseState [src]

Read initial FSE states for sequence decoding. Errors returned: error.EndOfStream if bit_reader does not contain enough bits.

Prototype

pub fn readInitialFseState(self: *DecodeState, bit_reader: *readers.ReverseBitReader) error{EndOfStream}!void

Parameters

self: *DecodeStatebit_reader: *readers.ReverseBitReader

Possible Errors

EndOfStream

Source

pub fn readInitialFseState(self: *DecodeState, bit_reader: *readers.ReverseBitReader) error{EndOfStream}!void { self.literal.state = try bit_reader.readBitsNoEof(u9, self.literal.accuracy_log); self.offset.state = try bit_reader.readBitsNoEof(u8, self.offset.accuracy_log); self.match.state = try bit_reader.readBitsNoEof(u9, self.match.accuracy_log); }