mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-05 00:56:39 +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
Notes:
sideshowbarker
2024-07-18 04:05:08 +09:00
Author: https://github.com/kleinesfilmroellchen
Commit: 2909c3a931
Pull-request: https://github.com/SerenityOS/serenity/pull/9610
Reviewed-by: https://github.com/Hendiadyoin1
Reviewed-by: https://github.com/awesomekling
Reviewed-by: https://github.com/bugaevc
Reviewed-by: https://github.com/joebentley
Reviewed-by: https://github.com/nooga
Reviewed-by: https://github.com/sunverwerth
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