10Duke Enterprise C++ SDK
Loading...
Searching...
No Matches
tenduke::utl::DataSink Class Referenceabstract

#include <DataSink.h>

Detailed Description

A sink to which binary data can be appended.

Inheritance diagram for tenduke::utl::DataSink:
tenduke::utl::SimpleBuffer tenduke::utl::StringSink

Public Member Functions

virtual void append (const std::uint8_t *data, std::size_t size)=0
 Appends binary data to the sink.
virtual void append (const DataSpan &data)=0
 Appends a DataSpan to the sink.
virtual void append (std::uint8_t byte)=0
 Appends a single byte to the sink.

Member Function Documentation

◆ append() [1/3]

virtual void tenduke::utl::DataSink::append ( const DataSpan & data)
pure virtual

Appends a DataSpan to the sink.

Parameters
datadata to append

Implemented in SimpleBuffer, tenduke::utl::SimpleBuffer, and tenduke::utl::StringSink.

◆ append() [2/3]

virtual void tenduke::utl::DataSink::append ( const std::uint8_t * data,
std::size_t size )
pure virtual

Appends binary data to the sink.

Parameters
datadata to append
sizesize of data to append

Implemented in tenduke::utl::StringSink.

◆ append() [3/3]

virtual void tenduke::utl::DataSink::append ( std::uint8_t byte)
pure virtual

Appends a single byte to the sink.

Parameters
bytebyte to append

Implemented in SimpleBuffer, tenduke::utl::SimpleBuffer, and tenduke::utl::StringSink.


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