aboutsummaryrefslogtreecommitdiff
path: root/zencore/include
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2021-05-11 21:54:35 +0200
committerStefan Boberg <[email protected]>2021-05-11 21:54:35 +0200
commit57384321386f01f6e0f80e3984f08c05a0bb7a42 (patch)
treed63d45f885478f23967135788f8a434a596d0b8d /zencore/include
parentAdded paths as context to I/O error exception messages (diff)
downloadzen-57384321386f01f6e0f80e3984f08c05a0bb7a42.tar.xz
zen-57384321386f01f6e0f80e3984f08c05a0bb7a42.zip
Implemented basic support for marshaling attachments out-of-band with the package payload
Currently supported in project store but will also be used for the structured cache Currently, cleanup is missing. Ultimately the intent is that the file used for marshaling will simply be moved into place.
Diffstat (limited to 'zencore/include')
-rw-r--r--zencore/include/zencore/compactbinarypackage.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/zencore/include/zencore/compactbinarypackage.h b/zencore/include/zencore/compactbinarypackage.h
index c98ab047f..03098f494 100644
--- a/zencore/include/zencore/compactbinarypackage.h
+++ b/zencore/include/zencore/compactbinarypackage.h
@@ -16,6 +16,7 @@ class CbWriter;
class BinaryReader;
class BinaryWriter;
class IoBuffer;
+class CbAttachment;
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
@@ -278,9 +279,9 @@ public:
*/
ZENCORE_API void Load(CbFieldIterator& Fields);
- ZENCORE_API void Load(IoBuffer& Buffer, BufferAllocator Allocator = UniqueBuffer::Alloc);
+ ZENCORE_API void Load(IoBuffer& Buffer, BufferAllocator Allocator = UniqueBuffer::Alloc, AttachmentResolver* Mapper = nullptr);
- ZENCORE_API void Load(BinaryReader& Reader, BufferAllocator Allocator = UniqueBuffer::Alloc);
+ ZENCORE_API void Load(BinaryReader& Reader, BufferAllocator Allocator = UniqueBuffer::Alloc, AttachmentResolver* Mapper = nullptr);
/** Save the object and attachments into the writer as a stream of compact binary fields. */
ZENCORE_API void Save(CbWriter& Writer) const;