![]() |
HAN-FUN API
1.5.3
This project provides the common implementation of ULE Alliance's HAN-FUN application protocol.
|
This class represents an empty UID. More...
#include <uids.h>
Public Member Functions | |
uint16_t | pack (Common::ByteArray &array, uint16_t offset=0) const |
Write the object on to a ByteArray so it can be sent over the network. More... | |
uint16_t | unpack (const Common::ByteArray &array, uint16_t offset=0) |
Read a message from a ByteArray. More... | |
NONE * | clone () const |
Create a clone object of the object where this method is being called. More... | |
![]() | |
virtual int | compare (const UID_T &other) const |
Compare the current UID with the given UID. More... | |
uint16_t | size () const |
Number bytes needed to serialize the message. More... | |
![]() | |
virtual | ~Serializable () |
Destructor. | |
Additional Inherited Members | |
![]() | |
static constexpr uint16_t | min_size |
Minimum pack/unpack required data size. | |
|
inlinevirtual |
Create a clone object of the object where this method is being called.
Implements HF::Common::Cloneable< UID_T >.
|
inlinevirtual |
Write the object on to a ByteArray so it can be sent over the network.
The buffer passed in MUST have enough size to hold the serialized object, e.g.,
[in,out] | array | ByteArray reference to write the object to. |
[in] | offset | offset to start writing to. |
Reimplemented from HF::UID::UID_T.
Definition at line 146 of file uids.h.
References HF_SERIALIZABLE_CHECK, HF::UID::UID_T::min_size, HF::UID::UID_T::pack(), and HF::Common::ByteArray::write().
|
inlinevirtual |
Read a message from a ByteArray.
[in] | array | ByteArray reference to read the message from. |
[in] | offset | offset to start reading from. |
Reimplemented from HF::UID::UID_T.
Definition at line 157 of file uids.h.
References HF_SERIALIZABLE_CHECK, HF::UID::UID_T::min_size, HF::Common::ByteArray::read(), HF::UID::UID_T::size(), and HF::UID::UID_T::unpack().