mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-27 12:41:57 +00:00
LibCore: Rename class Gzip -> CGZip
This commit is contained in:
parent
edd0959c83
commit
a353d16ff4
Notes:
sideshowbarker
2024-07-19 17:43:13 +09:00
Author: https://github.com/msc94
Commit: a353d16ff4
Pull-request: https://github.com/SerenityOS/serenity/pull/750
Reviewed-by: https://github.com/awesomekling
3 changed files with 5 additions and 5 deletions
|
@ -7,7 +7,7 @@
|
|||
|
||||
#include <LibDraw/puff.h>
|
||||
|
||||
bool Gzip::is_compressed(const ByteBuffer& data)
|
||||
bool CGzip::is_compressed(const ByteBuffer& data)
|
||||
{
|
||||
return data.size() > 2 && data[0] == 0x1F && data[1] == 0x8b;
|
||||
}
|
||||
|
@ -78,7 +78,7 @@ static Optional<ByteBuffer> get_gzip_payload(const ByteBuffer& data)
|
|||
return data.slice(current, new_size);
|
||||
}
|
||||
|
||||
Optional<ByteBuffer> Gzip::decompress(const ByteBuffer& data)
|
||||
Optional<ByteBuffer> CGzip::decompress(const ByteBuffer& data)
|
||||
{
|
||||
ASSERT(is_compressed(data));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue