From 57384321386f01f6e0f80e3984f08c05a0bb7a42 Mon Sep 17 00:00:00 2001 From: Stefan Boberg Date: Tue, 11 May 2021 21:54:35 +0200 Subject: 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. --- zencore/include/zencore/compactbinarypackage.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'zencore/include') 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; -- cgit v1.2.3