43 return !(*
this == other);
47 return this->m_bufferData;
51 return this->m_bufferData;
55 return sizeof(this->m_bufferData);
58 FwSizeType HashBuffer::getBuffCapacity()
const {
64 const FwSizeType bufferSize =
sizeof this->m_bufferData;
65 const FwSizeType numBytes =
std::min(bufferSize, static_cast<FwSizeType>(
sizeof(U32)));
68 FW_ASSERT(i < bufferSize, static_cast<FwAssertArgType>(i), static_cast<FwAssertArgType>(bufferSize));
69 result += this->m_bufferData[i];
Serialization/Deserialization operation was successful.
PlatformSizeType FwSizeType
LinearBufferBase SerializeBufferBase
forward declaration
Serializable::SizeType getSize() const override
Get current buffer size.
SerializeStatus
forward declaration for string
FwSizeType getCapacity() const
Get buffer capacity.
SerializeStatus setBuff(const U8 *src, Serializable::SizeType length) override
Set buffer contents from external source.
uint8_t U8
8-bit unsigned integer
static U32 min(const U32 a, const U32 b)
U32 asBigEndianU32() const
Convert bytes 0 through 3 of the hash data to a big-Endian U32 value.
A container class for holding a hash buffer.
HashBuffer & operator=(const HashBuffer &other)
Implementation of malloc based allocator.
bool operator!=(const HashBuffer &other) const
bool operator==(const HashBuffer &other) const