17 #ifndef vtkBufferedArchiver_h
18 #define vtkBufferedArchiver_h
20 #include "vtkCommonArchiveModule.h"
24 VTK_ABI_NAMESPACE_BEGIN
102 VTK_ABI_NAMESPACE_END
Writes an archive to a buffer for vtk-js datasets.
void SetAllocatedSize(std::size_t)
Set/Get the allocated buffer size.
static vtkBufferedArchiver * New()
~vtkBufferedArchiver() override
void OpenArchive() override
Open the archive for writing.
void InsertIntoArchive(const std::string &relativePath, const char *data, std::size_t size) override
Insert data of size size into the archive at relativePath.
std::size_t GetAllocatedSize()
Set/Get the allocated buffer size.
const void * GetBufferAddress()
Access the address of the buffer.
const char * GetBuffer()
Access the buffer.
std::size_t GetBufferSize()
Get the buffer used size.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void CloseArchive() override
Close the archive.
bool Contains(const std::string &relativePath) override
Checks if relativePath represents an entry in the archive.
a simple class to control print indentation