diff options
| author | Stefan Boberg <[email protected]> | 2021-05-13 12:01:18 +0200 |
|---|---|---|
| committer | Stefan Boberg <[email protected]> | 2021-05-13 12:01:18 +0200 |
| commit | 0b8280d4fcbf3a65997c3cc86cf14f5f7c44b7fe (patch) | |
| tree | 5ce29b79d0636e8e127c68c9fb9928b67759d1ac /zencore/compactbinary.cpp | |
| parent | clang-format (diff) | |
| download | zen-0b8280d4fcbf3a65997c3cc86cf14f5f7c44b7fe.tar.xz zen-0b8280d4fcbf3a65997c3cc86cf14f5f7c44b7fe.zip | |
Made SharedBuffer/UniqueBuffer share guts with IoBuffer
This enables way more efficient marshaling of compact binary objects and attachments
Diffstat (limited to 'zencore/compactbinary.cpp')
| -rw-r--r-- | zencore/compactbinary.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/zencore/compactbinary.cpp b/zencore/compactbinary.cpp index 4ee9e9281..cae6c506d 100644 --- a/zencore/compactbinary.cpp +++ b/zencore/compactbinary.cpp @@ -1079,7 +1079,7 @@ LoadCompactBinary(BinaryReader& Ar, BufferAllocator Allocator) // Allocate the buffer, copy the header, and read the remainder of the field. UniqueBuffer Buffer = Allocator(FieldSize); ZEN_ASSERT(Buffer.GetSize() == FieldSize); - MutableMemoryView View = Buffer.GetView(); + MutableMemoryView View = Buffer.GetMutableView(); memcpy(View.GetData(), HeaderBytes.data(), HeaderBytes.size()); View.RightChopInline(HeaderBytes.size()); if (!View.IsEmpty()) |