mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 13:57:35 +00:00
LibCompress: Add a constructor to Brotli::CanonicalCode
This constructor will be used by the JPEG-XL decoder to support a non-standard special case. Other user should only use other constructors.
This commit is contained in:
parent
96eace8390
commit
bb834ed765
1 changed files with 3 additions and 0 deletions
|
@ -18,6 +18,9 @@ namespace Brotli {
|
|||
class CanonicalCode {
|
||||
public:
|
||||
CanonicalCode() = default;
|
||||
CanonicalCode(Vector<size_t> codes, Vector<size_t> values)
|
||||
: m_symbol_codes(move(codes))
|
||||
, m_symbol_values(move(values)) {};
|
||||
|
||||
static ErrorOr<CanonicalCode> read_prefix_code(LittleEndianInputBitStream&, size_t alphabet_size);
|
||||
static ErrorOr<CanonicalCode> read_simple_prefix_code(LittleEndianInputBitStream&, size_t alphabet_size);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue