1
Fork 0
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:
Nico Weber 2023-04-01 19:52:38 -04:00 committed by Andreas Kling
parent 36ca1386e8
commit 85d0637058
2 changed files with 18 additions and 29 deletions

View file

@ -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;