mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:57:35 +00:00
LibIPC: Support transferring String over IPC
Note that unlike the StringView encoder, we do not handle any "null" state, as the new String cannot be null.
This commit is contained in:
parent
a1baa5cb00
commit
a7bb72a3d6
4 changed files with 29 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
|||
/*
|
||||
* Copyright (c) 2018-2021, Andreas Kling <kling@serenityos.org>
|
||||
* Copyright (c) 2023, Tim Flynn <trflynn89@serenityos.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
@ -106,6 +107,9 @@ ErrorOr<void> encode(Encoder&, float const&);
|
|||
template<>
|
||||
ErrorOr<void> encode(Encoder&, double const&);
|
||||
|
||||
template<>
|
||||
ErrorOr<void> encode(Encoder&, String const&);
|
||||
|
||||
template<>
|
||||
ErrorOr<void> encode(Encoder&, StringView const&);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue