mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-29 19:10:26 +00:00
ab99ed5fba
In doing so, this removes all uses of the Encoder's stream operator, except for where it is currently still used in the generated IPC code. So the stream operator currently discards any errors, which is the existing behavior. A subsequent commit will propagate the errors.
26 lines
371 B
C++
26 lines
371 B
C++
/*
|
|
* Copyright (c) 2020, Andreas Kling <kling@serenityos.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <AK/Error.h>
|
|
|
|
namespace IPC {
|
|
|
|
class Decoder;
|
|
class Dictionary;
|
|
class Encoder;
|
|
class Message;
|
|
class File;
|
|
class Stub;
|
|
|
|
template<typename T>
|
|
ErrorOr<void> encode(Encoder&, T const&);
|
|
|
|
template<typename T>
|
|
ErrorOr<T> decode(Decoder&);
|
|
|
|
}
|