VRS
A file format for sensor data.
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
vrs::DataLayoutChunk Struct Reference

Class referencing a DataLayout object, and abstracting the interactions for DataSource. More...

#include <DataSource.h>

Public Member Functions

 DataLayoutChunk ()=default
 Default constructor to no DataLayout.
 
 DataLayoutChunk (DataLayout &dataLayout)
 Constructor to reference a DataLayout, which must outlive this DataLayoutChunk.
 
size_t size () const
 Get the data size required to hold all of the DataLayout's data.
 
void fillAndAdvanceBuffer (uint8_t *&buffer) const
 Copy the data of the DataLayout (if any), and move the given pointer accordingly.
 

Public Attributes

DataLayout *const dataLayout_ {}
 
const size_t layoutFixedSize_ {}
 
const size_t layoutVariableSize_ {}
 

Detailed Description

Class referencing a DataLayout object, and abstracting the interactions for DataSource.

Only the constructor is meant to be used by code outside of DataSource. The default constructor holds no data. Do not change the underlying DataLayout until the DataLayoutChunk is destroyed. This is usually a trivial requirement, as DataSource objects (which hold DataLayoutChunk objects) only live briefly for the purpose of calling createRecord().


The documentation for this struct was generated from the following files: