mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-23 18:02:05 -05:00
AK: Remove some superstition from BufferStream :)
This commit is contained in:
parent
e78097d140
commit
3792883219
1 changed files with 7 additions and 7 deletions
|
@ -14,7 +14,7 @@ public:
|
|||
|
||||
void operator<<(u8 value)
|
||||
{
|
||||
m_buffer[m_offset++] = value & 0xffu;
|
||||
m_buffer[m_offset++] = value;
|
||||
}
|
||||
|
||||
void operator<<(char value)
|
||||
|
@ -24,16 +24,16 @@ public:
|
|||
|
||||
void operator<<(u16 value)
|
||||
{
|
||||
m_buffer[m_offset++] = value & 0xffu;
|
||||
m_buffer[m_offset++] = (u8)(value >> 8) & 0xffu;
|
||||
m_buffer[m_offset++] = value;
|
||||
m_buffer[m_offset++] = (u8)(value >> 8);
|
||||
}
|
||||
|
||||
void operator<<(u32 value)
|
||||
{
|
||||
m_buffer[m_offset++] = value & 0xffu;
|
||||
m_buffer[m_offset++] = (u8)(value >> 8) & 0xffu;
|
||||
m_buffer[m_offset++] = (u8)(value >> 16) & 0xffu;
|
||||
m_buffer[m_offset++] = (u8)(value >> 24) & 0xffu;
|
||||
m_buffer[m_offset++] = value;
|
||||
m_buffer[m_offset++] = (u8)(value >> 8);
|
||||
m_buffer[m_offset++] = (u8)(value >> 16);
|
||||
m_buffer[m_offset++] = (u8)(value >> 24);
|
||||
}
|
||||
|
||||
void operator<<(const StringView& value)
|
||||
|
|
Loading…
Add table
Reference in a new issue