diff options
| author | Stefan Boberg <[email protected]> | 2021-09-13 12:19:10 +0200 |
|---|---|---|
| committer | Stefan Boberg <[email protected]> | 2021-09-13 12:19:10 +0200 |
| commit | 4d43557de2bdb6bbba7a1378f3f83b3e58bcd843 (patch) | |
| tree | 0eb26de57395d424fede42d86a3b11b66b4f3baf /zencore/include | |
| parent | Package filtering related test code (diff) | |
| download | zen-4d43557de2bdb6bbba7a1378f3f83b3e58bcd843.tar.xz zen-4d43557de2bdb6bbba7a1378f3f83b3e58bcd843.zip | |
Changed CbPackage::TryLoad() signature so it can handle temporaries
Diffstat (limited to 'zencore/include')
| -rw-r--r-- | zencore/include/zencore/compactbinarypackage.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/zencore/include/zencore/compactbinarypackage.h b/zencore/include/zencore/compactbinarypackage.h index 57624a3ab..c6bb32def 100644 --- a/zencore/include/zencore/compactbinarypackage.h +++ b/zencore/include/zencore/compactbinarypackage.h @@ -317,9 +317,7 @@ public: * The iterator is advanced as object and attachment fields are consumed from it. */ ZENCORE_API bool TryLoad(CbFieldIterator& Fields); - - ZENCORE_API bool TryLoad(IoBuffer& Buffer, BufferAllocator Allocator = UniqueBuffer::Alloc, AttachmentResolver* Mapper = nullptr); - + ZENCORE_API bool TryLoad(IoBuffer Buffer, BufferAllocator Allocator = UniqueBuffer::Alloc, AttachmentResolver* Mapper = nullptr); ZENCORE_API bool TryLoad(BinaryReader& Reader, BufferAllocator Allocator = UniqueBuffer::Alloc, AttachmentResolver* Mapper = nullptr); /** Save the object and attachments into the writer as a stream of compact binary fields. */ |