10Duke Enterprise C++ SDK
Loading...
Searching...
No Matches
tenduke::utl::StringSink Class Reference

#include <StringSink.h>

Detailed Description

A tenduke::utl::DataSink, which appends binary data to a std::string.

The sink wraps reference to a std::string, and appends binary data to it.

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

Public Member Functions

 StringSink (std::string &buffer)
void append (const std::uint8_t *data, std::size_t size) override
 Appends binary data to the sink.
void append (const DataSpan &data) override
 Appends a DataSpan to the sink.
void append (std::uint8_t byte) override
 Appends a single byte to the sink.

Member Function Documentation

◆ append() [1/3]

void tenduke::utl::StringSink::append ( const DataSpan & data)
inlineoverridevirtual

Appends a DataSpan to the sink.

Parameters
datadata to append

Implements tenduke::utl::DataSink.

◆ append() [2/3]

void tenduke::utl::StringSink::append ( const std::uint8_t * data,
std::size_t size )
inlineoverridevirtual

Appends binary data to the sink.

Parameters
datadata to append
sizesize of data to append

Implements tenduke::utl::DataSink.

◆ append() [3/3]

void tenduke::utl::StringSink::append ( std::uint8_t byte)
inlineoverridevirtual

Appends a single byte to the sink.

Parameters
bytebyte to append

Implements tenduke::utl::DataSink.


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