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
commit 2909c3a931
Notes: sideshowbarker 2024-07-18 04:05:08 +09:00
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;