CatapultServer
v0.5.0.1 (Elephant)
|
Go to the documentation of this file.
25 namespace catapult {
namespace model {
45 return entity.Size != T::CalculateRealSize(entity) ? nullptr : entity.ToBytePointer() +
sizeof(T);
const uint8_t * ToBytePointer() const
Returns byte-based const pointer to this entity.
Definition: SizePrefixedEntity.cpp:26
bool operator!=(const SizePrefixedEntity &rhs) const
Returns true if this entity is not equal to rhs.
Definition: SizePrefixedEntity.cpp:38
Binary layout for a size prefixed entity.
Definition: SizePrefixedEntity.h:30
bool operator==(const SizePrefixedEntity &rhs) const
Returns true if this entity is equal to rhs.
Definition: SizePrefixedEntity.cpp:34
static auto PayloadStart(T &entity)
Gets the start of the variable data part of entity.
Definition: SizePrefixedEntity.h:44
Definition: AddressExtractionExtension.cpp:28
A class that can neither be copied nor moved.
Definition: NonCopyable.h:26
uint32_t Size
Entity size.
Definition: SizePrefixedEntity.h:33