adtf_file_library  0.13.2
Public Member Functions | Static Public Attributes | List of all members
adtf_file::adtf3::SampleCopyDeserializerNs Class Reference

SampleDeserializer for ADTF 3 Samples with timestamp of nanoseconds resolution. This deserializer "only" memcpy the sample content from the input stream into the sample data buffer adtf_file::ReadSample::beginBufferWrite. More...

#include <adtf3_sample_copy_deserializer.h>

Inheritance diagram for adtf_file::adtf3::SampleCopyDeserializerNs:
[legend]
Collaboration diagram for adtf_file::adtf3::SampleCopyDeserializerNs:
[legend]

Public Member Functions

void setStreamType (const StreamType &type) override
 StreamType infomation to initialize deserializer if needed. More...
 
void deserialize (ReadSample &sample, InputStream &stream) override
 Deserialize a sample from stream. More...
 

Static Public Attributes

static constexpr const char * id = "sample_copy_serialization_ns.serialization.adtf.cid"
 identifier for SampleCopyDeserializerNs and SampleCopySerializerNs
 

Detailed Description

SampleDeserializer for ADTF 3 Samples with timestamp of nanoseconds resolution. This deserializer "only" memcpy the sample content from the input stream into the sample data buffer adtf_file::ReadSample::beginBufferWrite.

Remarks
It should only be used if SampleCopySerializerNs was used for serialization since SampleCopySerializerNs does not consider any byte order or platform dependent type sizes of the sample data content

Member Function Documentation

◆ deserialize()

void adtf_file::adtf3::SampleCopyDeserializerNs::deserialize ( ReadSample sample,
InputStream stream 
)
overridevirtual

Deserialize a sample from stream.

Parameters
samplethe sample to deserialize to
streamthe stream to read from

Implements adtf_file::SampleDeserializer.

◆ setStreamType()

void adtf_file::adtf3::SampleCopyDeserializerNs::setStreamType ( const StreamType type)
overridevirtual

StreamType infomation to initialize deserializer if needed.

Parameters
type

Implements adtf_file::SampleDeserializer.


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

Copyright © CARIAD SE.
Generated on Mon Jun 10 2024 by doxygen 1.9.1
GIT Commit Hash: eb3af397a6b49ad6fcad9a60d8277d909b458b48