Skip to main content

Module decode

Module decode 

Source

Functionsยง

complete_quads_len ๐Ÿ”’
Returns the length of complete quads, except for the last one, even if it is complete.
decode_chunk_4 ๐Ÿ”’
Like decode_chunk_8 but for 4 bytes of input and 3 bytes of output.
decode_chunk_8 ๐Ÿ”’
Decode 8 bytes of input into 6 bytes of output.
decode_complete_quads ๐Ÿ”’
Decode the complete non-terminal quads in input[input_index_start..input_index_end] (both bounds multiples of 4), writing to output starting at output_index_start, which must equal input_index_start / 4 * 3. Error offsets are reported in absolute input coordinates.
decode_helper ๐Ÿ”’
Helper to avoid duplicating num_chunks calculation, which is costly on short inputs. Returns the decode metadata, or an error.