mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
AK: Move memory streams from LibCore
This commit is contained in:
committed by
Andrew Kaster
parent
11550f582b
commit
093cf428a3
Notes:
sideshowbarker
2024-07-17 00:58:49 +09:00
Author: https://github.com/timschumi Commit: https://github.com/SerenityOS/serenity/commit/093cf428a3 Pull-request: https://github.com/SerenityOS/serenity/pull/17173 Reviewed-by: https://github.com/ADKaster ✅ Reviewed-by: https://github.com/alimpfard
@@ -586,7 +586,7 @@ public:
|
||||
|
||||
static ErrorOr<NonnullOwnPtr<IPC::Message>> decode_message(ReadonlyBytes buffer, [[maybe_unused]] Core::Stream::LocalSocket& socket)
|
||||
{
|
||||
auto stream = TRY(Core::Stream::FixedMemoryStream::construct(buffer));
|
||||
auto stream = TRY(FixedMemoryStream::construct(buffer));
|
||||
auto message_endpoint_magic = TRY(stream->read_value<u32>());)~~~");
|
||||
generator.append(R"~~~(
|
||||
|
||||
@@ -768,10 +768,10 @@ void build(StringBuilder& builder, Vector<Endpoint> const& endpoints)
|
||||
}
|
||||
|
||||
generator.appendln(R"~~~(#include <AK/Error.h>
|
||||
#include <AK/MemoryStream.h>
|
||||
#include <AK/OwnPtr.h>
|
||||
#include <AK/Result.h>
|
||||
#include <AK/Utf8View.h>
|
||||
#include <LibCore/MemoryStream.h>
|
||||
#include <LibIPC/Connection.h>
|
||||
#include <LibIPC/Decoder.h>
|
||||
#include <LibIPC/Dictionary.h>
|
||||
|
||||
Reference in New Issue
Block a user