1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 15:27:34 +00:00

LibIPC: Add support for transferring doubles over IPC messages

I'm still wondering why nobody did this yet :^) Also changes the use of
unions for the more cleaner / less undefined AK::bit_cast.
This commit is contained in:
kleines Filmröllchen 2021-08-26 03:05:01 +02:00 committed by Andreas Kling
parent 6c5fb2ca63
commit 2909c3a931
4 changed files with 18 additions and 6 deletions

View file

@ -78,6 +78,12 @@ bool Decoder::decode(float& value)
return !m_stream.handle_any_error();
}
bool Decoder::decode(double& value)
{
m_stream >> value;
return !m_stream.handle_any_error();
}
bool Decoder::decode(String& value)
{
i32 length = 0;