Serialbox  2.2.0
Data serialization library and tools for C/C++, Python and Fortran
serialbox::BinaryBuffer Class Reference

Contiguous buffer with support for sliced loading. More...

Public Member Functions

 BinaryBuffer (const StorageView &storageView)
 Allocate the buffer.
 
void copyBufferToStorageView (StorageView &storageView)
 Copy data from buffer to storageView while handling slicing.
 
void copyStorageViewToBuffer (const StorageView &storageView)
 Copy data from storageView to buffer.
 
std::size_t size () const noexcept
 Get Buffer size.
 
Bytedata () noexcept
 Get pointer to the beginning of the buffer.
 
const Bytedata () const noexcept
 
std::size_t offset () const noexcept
 Get initial offset of the data on disk in bytes.
 

Detailed Description

Contiguous buffer with support for sliced loading.

Definition at line 30 of file BinaryArchive.cpp.


The documentation for this class was generated from the following file: