cpp-mate
0.7
Helpful library for C++.
|
Represents interface of abstract binary data. More...
#include <BinaryData.hpp>
Classes | |
class | Empty |
Represents implementation of BinaryData interface for empty data. More... | |
class | Window |
Represents window within provided BinaryData. More... | |
class | Wrapper |
Represents implementation of BinaryData interface for exisitng data. More... | |
Public Member Functions | |
virtual | ~BinaryData ()=default |
virtual const uint8_t * | getData () const =0 |
Returns address of data. More... | |
virtual uint64_t | getSize () const =0 |
Returns size of data in bytes. More... | |
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... | |
Represents interface of abstract binary data.
|
virtualdefault |
Default destructor.
|
pure virtual |
Returns address of data.
Implemented in CppMate::BinarySink::Memory, CppMate::BinaryData::Window, CppMate::BinaryData::Empty, and CppMate::BinaryData::Wrapper.
|
pure virtual |
Returns size of data in bytes.
Implemented in CppMate::BinarySink::Memory, CppMate::BinaryData::Window, CppMate::BinaryData::Empty, and CppMate::BinaryData::Wrapper.
|
inline |
Returns status of a data presence.
true
if data address is not null and size of data greater than zero; false
otherwise.
|
inline |
operator !=
other | the instance to compare. |
false
if instances is equal; true
otherwise.
|
inline |
operator ==
other | the instance to compare. |
true
if instances is equal; false
otherwise.