mirror of
https://github.com/RGBCube/serenity
synced 2025-06-01 05:48:12 +00:00
LibIPC: Remove IPC::Encoder overloads for size_t
Clients of this code should use explicitly-sized types instead.
This commit is contained in:
parent
d264e8fcc5
commit
6d1740e4be
1 changed files with 0 additions and 20 deletions
|
@ -118,26 +118,6 @@ public:
|
|||
return *this;
|
||||
}
|
||||
|
||||
Encoder& operator<<(size_t value)
|
||||
{
|
||||
if constexpr (sizeof(size_t) == 4)
|
||||
return *this << (u32)value;
|
||||
else if constexpr (sizeof(size_t) == 8)
|
||||
return *this << (u64)value;
|
||||
ASSERT_NOT_REACHED();
|
||||
}
|
||||
|
||||
#ifndef __i386__
|
||||
Encoder& operator<<(ssize_t value)
|
||||
{
|
||||
if constexpr (sizeof(ssize_t) == 4)
|
||||
return *this << (i32)value;
|
||||
else if constexpr (sizeof(ssize_t) == 8)
|
||||
return *this << (i64)value;
|
||||
ASSERT_NOT_REACHED();
|
||||
}
|
||||
#endif
|
||||
|
||||
Encoder& operator<<(float value)
|
||||
{
|
||||
union bits {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue