Interface class for samples that are read from a Reader.
More...
#include <sample.h>
Interface class for samples that are read from a Reader.
◆ addInfo()
virtual void adtf_file::ReadSample::addInfo |
( |
uint32_t |
key, |
|
|
DataType |
type, |
|
|
uint64_t |
raw_bytes |
|
) |
| |
|
pure virtual |
Adds a additional sample information.
- Parameters
-
key | key for the sample information |
type | data type of the information |
raw_bytes | the raw value of the information |
Implemented in adtf_file::DefaultSample.
◆ beginBufferWrite()
virtual void* adtf_file::ReadSample::beginBufferWrite |
( |
size_t |
size | ) |
|
|
pure virtual |
allocates the memory buffer for sample data
- Parameters
-
size | the memory to allocate in bytes |
- Returns
- void* the pointer to the memory
Implemented in adtf_file::DefaultSample.
◆ setFlags()
virtual void adtf_file::ReadSample::setFlags |
( |
uint32_t |
flags | ) |
|
|
pure virtual |
◆ setSubStreamId()
virtual void adtf_file::ReadSample::setSubStreamId |
( |
uint32_t |
substream_id | ) |
|
|
pure virtual |
◆ setTimeStamp()
virtual void adtf_file::ReadSample::setTimeStamp |
( |
std::chrono::nanoseconds |
time_stamp | ) |
|
|
pure virtual |
The documentation for this class was generated from the following file: