CloudEvent
Utility methods - CloudEvent
setSize - CloudEvent
Set the size of the data. This is rarely needed.
// PROTOTYPE
int setSize(size_t size)
size - CloudEvent
Get the size of the data. This is the encoded size is stored internally so this is efficient.
You may want to use this with canPublish to see if the event can be published based on the current rate limiting.
// PROTOTYPE
size_t size() const
isEmpty - CloudEvent
Returns true if the event is empty (has no data).
// PROTOTYPE
bool isEmpty() const