Module: Omnizip::Algorithms::Zstandard::FSE

Defined in:
lib/omnizip/algorithms/zstandard/fse.rb,
lib/omnizip/algorithms/zstandard/fse/table.rb,
lib/omnizip/algorithms/zstandard/fse/encoder.rb,
lib/omnizip/algorithms/zstandard/fse/bitstream.rb,
lib/omnizip/algorithms/zstandard/fse/interleaved.rb,
lib/omnizip/algorithms/zstandard/fse/table_description.rb

Overview

FSE (Finite State Entropy) namespace (RFC 8878 ยง4.1).

Defined Under Namespace

Modules: Interleaved, TableDescription Classes: BitStream, Decoder, Encoder, State, Table

Class Method Summary collapse

Class Method Details

.decode_stream(table, bitstream_bytes, max_output) ⇒ Array<Integer>

Decode a 2-state interleaved FSE stream.

Returns:

  • (Array<Integer>)


47
48
49
# File 'lib/omnizip/algorithms/zstandard/fse.rb', line 47

def decode_stream(table, bitstream_bytes, max_output)
  Interleaved.decode_stream(table, bitstream_bytes, max_output)
end

.read_table(src) ⇒ Array(Table, Integer)

Read an FSE table description from the head of src.

Returns:

  • (Array(Table, Integer))

    table and bytes consumed



40
41
42
# File 'lib/omnizip/algorithms/zstandard/fse.rb', line 40

def read_table(src)
  TableDescription.read(src)
end