26 #ifndef vtkBufferedArchiver_h
27 #define vtkBufferedArchiver_h
29 #include "vtkCommonArchiveModule.h"
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 arhive 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()
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 arhive.
bool Contains(const std::string &relativePath) override
Checks if relativePath represents an entry in the archive.
a simple class to control print indentation