Brotli::Enc::Command
Inherits Struct < Value < Object
A sequence of literals followed by a backward-reference copy.
Constructors
InitInsertCommand: insert-only command (last tail of a metablock). Sets dist_prefix = NUM_DISTANCE_SHORT_CODES directly (16 is NOT re-encoded through prefix_encode_copy_distance — at ndirect = 0 it would fall into the regular branch and become (1 << 10) | 16).
InitCommand: distance_code is e.g. 0 for same-as-last short code, or 16 for offset 1 (intermediate code). The distance prefix/extra are stored as if npostfix and ndirect were 0-compatible; they are recomputed after clustering if needed (RecomputeDistancePrefixes).
Instance methods
distance code in low 10 bits, number of extra bits in high 6 bits.
CommandRestoreDistanceCode: intermediate distance code back from the stored prefix/extra with the given distance params.