CatapultServer
v0.5.0.1 (Elephant)
|
Binary layout for a size prefixed entity. More...
Public Member Functions | |
bool | operator== (const SizePrefixedEntity &rhs) const |
Returns true if this entity is equal to rhs. More... | |
bool | operator!= (const SizePrefixedEntity &rhs) const |
Returns true if this entity is not equal to rhs. More... | |
Public Member Functions inherited from catapult::utils::NonCopyable | |
constexpr | NonCopyable ()=default |
Default constructor. More... | |
~NonCopyable ()=default | |
Default destructor. More... | |
NonCopyable (const NonCopyable &)=delete | |
Disabled copy constructor. More... | |
NonCopyable & | operator= (const NonCopyable &)=delete |
Disabled assignment operator. More... | |
Public Attributes | |
uint32_t | Size |
Entity size. More... | |
Protected Member Functions | |
const uint8_t * | ToBytePointer () const |
Returns byte-based const pointer to this entity. More... | |
uint8_t * | ToBytePointer () |
Returns byte-based pointer to this entity. More... | |
Static Protected Member Functions | |
template<typename T > | |
static auto | PayloadStart (T &entity) |
Gets the start of the variable data part of entity. More... | |
Binary layout for a size prefixed entity.
bool catapult::model::SizePrefixedEntity::operator!= | ( | const SizePrefixedEntity & | rhs | ) | const |
Returns true
if this entity is not equal to rhs.
bool catapult::model::SizePrefixedEntity::operator== | ( | const SizePrefixedEntity & | rhs | ) | const |
Returns true
if this entity is equal to rhs.
|
inlinestaticprotected |
Gets the start of the variable data part of entity.
|
protected |
Returns byte-based pointer to this entity.
|
protected |
Returns byte-based const pointer to this entity.
uint32_t catapult::model::SizePrefixedEntity::Size |
Entity size.