mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 06:57:45 +00:00
LibCompress: Make CanonicalCode::from_bytes() return ErrorOr<>
No intended behavior change.
This commit is contained in:
parent
36ca1386e8
commit
85d0637058
2 changed files with 18 additions and 29 deletions
|
@ -27,7 +27,7 @@ public:
|
|||
static CanonicalCode const& fixed_literal_codes();
|
||||
static CanonicalCode const& fixed_distance_codes();
|
||||
|
||||
static Optional<CanonicalCode> from_bytes(ReadonlyBytes);
|
||||
static ErrorOr<CanonicalCode> from_bytes(ReadonlyBytes);
|
||||
|
||||
private:
|
||||
static constexpr size_t max_allowed_prefixed_code_length = 8;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue