diff options
Diffstat (limited to 'Libraries/LibIPC/Encoder.cpp')
-rw-r--r-- | Libraries/LibIPC/Encoder.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Libraries/LibIPC/Encoder.cpp b/Libraries/LibIPC/Encoder.cpp index af93c9918e..c0eb8d670e 100644 --- a/Libraries/LibIPC/Encoder.cpp +++ b/Libraries/LibIPC/Encoder.cpp @@ -24,6 +24,7 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#include <AK/ByteBuffer.h> #include <AK/String.h> #include <AK/URL.h> #include <LibIPC/Dictionary.h> @@ -141,6 +142,13 @@ Encoder& Encoder::operator<<(const String& value) return *this << value.view(); } +Encoder& Encoder::operator<<(const ByteBuffer& value) +{ + *this << static_cast<i32>(value.size()); + m_buffer.append(value.data(), value.size()); + return *this; +} + Encoder& Encoder::operator<<(const URL& value) { return *this << value.to_string(); |