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:
parent
6c5fb2ca63
commit
2909c3a931
4 changed files with 18 additions and 6 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue