cpp-mate  0.7
Helpful library for C++.
CppMate::BinarySink::Memory Class Reference

Represents binary sink to memory. More...

#include <BinarySink.hpp>

Inheritance diagram for CppMate::BinarySink::Memory:
Collaboration diagram for CppMate::BinarySink::Memory:

Public Member Functions

const uint8_t * getData () const override
 Returns address of data. More...
 
uint64_t getSize () const override
 Returns size of data in bytes. More...
 
void clear ()
 Clears buffer. More...
 
- Public Member Functions inherited from CppMate::BinarySink::Chunk
 Chunk (size_t chunkSize=std::numeric_limits< size_t >::max())
 Constructor. More...
 
void write (const void *data, uint64_t size) override
 Writes data into the sink. More...
 
- Public Member Functions inherited from CppMate::BinarySink
virtual ~BinarySink ()=default
 
- Public Member Functions inherited from CppMate::BinaryData
virtual ~BinaryData ()=default
 
bool hasData () const
 Returns status of a data presence. More...
 
bool operator== (const BinaryData &other) const
 operator == More...
 
bool operator!= (const BinaryData &other) const
 operator != More...
 

Protected Member Functions

void writeChunk (const void *data, size_t size) override
 Writes chunk of the data. More...
 

Detailed Description

Represents binary sink to memory.

Member Function Documentation

◆ clear()

void CppMate::BinarySink::Memory::clear ( )
inline

Clears buffer.

◆ getData()

const uint8_t* CppMate::BinarySink::Memory::getData ( ) const
inlineoverridevirtual

Returns address of data.

Returns
address of data.

Implements CppMate::BinaryData.

◆ getSize()

uint64_t CppMate::BinarySink::Memory::getSize ( ) const
inlineoverridevirtual

Returns size of data in bytes.

Returns
size of data.

Implements CppMate::BinaryData.

◆ writeChunk()

void CppMate::BinarySink::Memory::writeChunk ( const void *  data,
size_t  size 
)
inlineoverrideprotectedvirtual

Writes chunk of the data.

Parameters
datathe data to write.
sizethe size of the chunk.

Implements CppMate::BinarySink::Chunk.


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