mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-22 04:25:13 +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
Notes:
sideshowbarker
2024-07-17 03:19:14 +09:00
Author: https://github.com/LucasChollet Commit: https://github.com/SerenityOS/serenity/commit/bb834ed765 Pull-request: https://github.com/SerenityOS/serenity/pull/19589 Reviewed-by: https://github.com/ADKaster ✅ Reviewed-by: https://github.com/nico
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
Reference in a new issue