Home
last modified time | relevance | path

Searched refs:optionLength (Results 1 – 1 of 1) sorted by relevance

/openthread-latest/src/core/coap/
Dcoap_message.cpp249 uint16_t optionLength = iterator.GetOption()->GetLength(); in ReadUriPathOptions() local
256 VerifyOrExit(curUriPath + optionLength < GetArrayEnd(aUriPath), error = kErrorParse); in ReadUriPathOptions()
259 curUriPath += optionLength; in ReadUriPathOptions()
525 uint16_t optionLength; in Advance() local
552 optionLength = (headerByte & Message::kOptionLengthMask) >> Message::kOptionLengthOffset; in Advance()
553 SuccessOrExit(error = ReadExtendedOptionField(optionLength)); in Advance()
555 VerifyOrExit(optionLength <= GetMessage().GetLength() - mNextOptionOffset, error = kErrorParse); in Advance()
556 mNextOptionOffset += optionLength; in Advance()
559 mOption.mLength = optionLength; in Advance()