mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 12:19:54 +00:00
LibCore: Rename MemoryStream
to FixedMemoryStream
This is to differentiate between the upcoming `AllocatingMemoryStream`, which automatically allocates memory as needed instead of operating on a static memory area.
This commit is contained in:
parent
c4f68bde57
commit
c6d71ca727
Notes:
sideshowbarker
2024-07-17 03:08:59 +09:00
Author: https://github.com/timschumi
Commit: c6d71ca727
Pull-request: https://github.com/SerenityOS/serenity/pull/16426
Reviewed-by: https://github.com/davidot
Reviewed-by: https://github.com/kleinesfilmroellchen
Reviewed-by: https://github.com/sin-ack ✅
11 changed files with 29 additions and 27 deletions
|
@ -80,7 +80,7 @@ static Optional<ByteBuffer> handle_content_encoding(ByteBuffer const& buf, Depre
|
|||
} else if (content_encoding == "br") {
|
||||
dbgln_if(JOB_DEBUG, "Job::handle_content_encoding: buf is brotli compressed!");
|
||||
|
||||
auto bufstream_result = Core::Stream::MemoryStream::construct({ buf.data(), buf.size() });
|
||||
auto bufstream_result = Core::Stream::FixedMemoryStream::construct({ buf.data(), buf.size() });
|
||||
if (bufstream_result.is_error()) {
|
||||
dbgln("Job::handle_content_encoding: MemoryStream::construct() failed.");
|
||||
return {};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue