mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 09:30:24 +00:00
9b483625e6
Currently, the generated IPC decoders will default-construct the type to be decoded, then pass that value by reference to the concrete decoder. This, of course, requires that the type is default-constructible. This was an issue for decoding Variants, which had to require the first type in the Variant list is Empty, to ensure it is default constructible. Further, this made it possible for values to become uninitialized in user-defined decoders. This patch makes the decoder interface such that the concrete decoders themselves contruct the decoded type upon return from the decoder. To do so, the default decoders in IPC::Decoder had to be moved to the IPC namespace scope, as these decoders are now specializations instead of overloaded methods (C++ requires specializations to be in a namespace scope). |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
Concepts.h | ||
Connection.cpp | ||
Connection.h | ||
ConnectionFromClient.h | ||
ConnectionToServer.h | ||
Decoder.cpp | ||
Decoder.h | ||
Dictionary.h | ||
Encoder.cpp | ||
Encoder.h | ||
File.h | ||
Forward.h | ||
Message.h | ||
MultiServer.h | ||
SingleServer.h | ||
Stub.h |