Init()
Initializes the iterator to iterate over CoAP Options in a CoAP message. The iterator MUST be initialized before any other methods are used, otherwise its behavior is undefined. After initialization, the iterator is either updated to point to the first option, or it is marked as done (i.e., `IsDone()` returns `true`) when there is no option or if there is a parse error.
Init()
Initializes the iterator to iterate over CoAP Options in a CoAP message. The iterator MUST be initialized before any other methods are used, otherwise its behavior is undefined. After initialization, the iterator is either updated to point to the first option, or it is marked as done (i.e., `IsDone()` returns `true`) when there is no option or if there is a parse error.
IsDone() const
Indicates whether or not the iterator is done (i.e., has reached the end of CoAP Option Header).
HasParseErrored() const
Indicates whether or not there was a earlier parse error (i.e., whether the iterator is valid). After a parse errors, iterator would also be marked as done.
Advance()
Advances the iterator to the next CoAP Option in the header. The iterator is updated to point to the next option or marked as done when there are no more options.
Advance()
Advances the iterator to the next CoAP Option in the header. The iterator is updated to point to the next option or marked as done when there are no more options.
GetMessage() const
Gets the CoAP message associated with the iterator.
GetOption() const
Gets a pointer to the current CoAP Option to which the iterator is currently pointing.
ReadOptionValue() const
Reads the current Option Value into a given buffer.
ReadOptionValue() const
Reads the current Option Value into a given buffer.
GetPayloadMessageOffset() const
Gets the offset of beginning of the CoAP message payload (after the CoAP header). MUST be used after the iterator is done (i.e. iterated through all options).
GetOptionValueMessageOffset() const
Gets the offset of beginning of the CoAP Option Value. MUST be used during the iterator is in progress.
MarkAsDone()
MarkAsParseErrored()
Read()
ReadExtendedOptionField()
InitOrAdvance()