Lines Matching full:a

18  *  IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
114 * Returns a pointer to the Value.
118 * @returns A pointer to the value.
123 * Returns a pointer to the Value.
127 * @returns A pointer to the value.
132 * Returns a pointer to the next TLV.
136 * @returns A pointer to the next TLV.
141 * Returns a pointer to the next TLV.
145 * @returns A pointer to the next TLV.
153 * Appends a TLV to the end of the message.
157 * @param[in] aMessage A reference to the message to append to.
165 * Reads the value of TLV treating it as a given simple TLV type.
171 … * @tparam SimpleTlvType The simple TLV type to read (must be a sub-class of `SimpleTlvInfo`).
181 * Reads the value of TLV treating it as a given integer-value TLV type.
187 …* @tparam UintTlvType The integer simple TLV type to read (must be a sub-class of `UintTlvInf…
197 * Writes the value of TLV treating it as a given simple TLV type.
203 … * @tparam SimpleTlvType The simple TLV type to read (must be a sub-class of `SimpleTlvInfo`).
213 * Writes the value of TLV treating it as a given integer-value TLV type.
219 …* @tparam UintTlvType The integer simple TLV type to read (must be a sub-class of `UintTlvInf…
229 // Static methods for reading/finding/appending TLVs in a `Message`.
232 * Represents information for a parsed TLV from a message.
237 …* Parses the TLV from a given message at given offset, ensures the TLV is well-formed and its head…
251 …* Parses the TLV from a given message for a given offset range, ensures the TLV is well-formed and…
265 …* Searches in a given message starting from message offset for a TLV of given type and if found, p…
292 * Reads a TLV's value in a message at a given offset expecting a minimum length for the value.
298 …* @param[out] aValue A buffer to output the TLV's value, must contain (at least) @p aMinLeng…
307 * Reads a simple TLV with a single non-integral value in a message at a given offset.
309 …* @tparam SimpleTlvType The simple TLV type to read (must be a sub-class of `SimpleTlvInfo`…
313 * @param[out] aValue A reference to the value object to output the read value.
325 * Reads a simple TLV with a single integral value in a message at a given offset.
327 … * @tparam UintTlvType The simple TLV type to read (must be a sub-class of `UintTlvInfo`).
331 * @param[out] aValue A reference to an unsigned int to output the read value.
343 * Reads a simple TLV with a UTF-8 string value in a message at a given offset.
345 …* @tparam StringTlvType The simple TLV type to read (must be a sub-class of `StringTlvInfo`…
349 * @param[out] aValue A reference to the string buffer to output the read value.
361 * Searches for and reads a requested TLV out of a given message.
365 * @param[in] aMessage A reference to the message.
368 * @param[out] aTlv A reference to the TLV that will be copied to.
376 * Searches for and reads a requested TLV out of a given message.
380 * @param[in] aMessage A reference to the message.
383 * @param[out] aTlv A reference to the TLV that will be copied to.
384 * @param[out] aOffset A reference to return the offset to start of the TLV in @p aMessage.
392 * Searches for and reads a requested TLV out of a given message.
396 * @tparam TlvType The TlvType to search for (must be a sub-class of `Tlv`).
398 * @param[in] aMessage A reference to the message.
399 * @param[out] aTlv A reference to the TLV that will be copied to.
410 * Searches for and reads a requested TLV out of a given message.
414 * @tparam TlvType The TlvType to search for (must be a sub-class of `Tlv`).
416 * @param[in] aMessage A reference to the message.
417 * @param[out] aTlv A reference to the TLV that will be copied to.
418 * @param[out] aOffset A reference to return the offset to start of the TLV in @p aMessage.
429 * Finds the offset range of the TLV value for a given TLV type within @p aMessage.
433 * @param[in] aMessage A reference to the message.
435 … * @param[out] aOffsetRange A reference to return the offset range of the TLV value when found.
443 * Searches for a TLV with a given type in a message, ensures its length is same or larger than
444 * an expected minimum value, and then reads its value into a given buffer.
454 * @param[in] aMessage A reference to the message.
455 … * @param[out] aValue A buffer to output the value (must contain at least @p aLength bytes).
468 … * Searches for a simple TLV with a single non-integral value in a message, ensures its length is
469 …* same or larger than the expected `ValueType` object size, and then reads its value into a value …
477 …* @tparam SimpleTlvType The simple TLV type to find (must be a sub-class of `SimpleTlvInfo…
479 * @param[in] aMessage A reference to the message.
480 * @param[out] aValue A reference to the value object to output the read value.
493 * Searches for a simple TLV with a single integral value in a message, and then reads its value
494 * into a given `uint` reference variable.
499 … * @tparam UintTlvType The simple TLV type to find (must be a sub-class of `UintTlvInfo`)
501 * @param[in] aMessage A reference to the message.
502 * @param[out] aValue A reference to an unsigned int value to output the TLV's value.
515 * Searches for a simple TLV with a UTF-8 string value in a message, and then reads its value
516 * into a given string buffer.
524 …* @tparam StringTlvType The simple TLV type to find (must be a sub-class of `StringTlvInfo`)
526 * @param[in] aMessage A reference to the message.
527 * @param[out] aValue A reference to a string buffer to output the TLV's value.
540 * Appends a TLV with a given type and value to a message.
549 * @param[in] aValue A buffer containing the TLV value.
558 * Appends a TLV with a given type and value to a message.
564 * @param[in] aMessage A reference to the message to append to.
565 * @param[in] aValue A buffer containing the TLV value.
577 * Appends a simple TLV with a single (non-integral) value to a message.
581 … * @tparam SimpleTlvType The simple TLV type to append (must be a sub-class of `SimpleTlvInfo`)
583 * @param[in] aMessage A reference to the message to append to.
584 * @param[in] aValue A reference to the object containing TLV's value.
596 * Appends a simple TLV with a single integral value to a message.
600 … * @tparam UintTlvType The simple TLV type to append (must be a sub-class of `UintTlvInfo`)
602 * @param[in] aMessage A reference to the message to append to.
614 * Appends a simple TLV with a single UTF-8 string value to a message.
623 …* @tparam StringTlvType The simple TLV type to append (must be a sub-class of `StringTlvInfo`)
625 * @param[in] aMessage A reference to the message to append to.
626 * @param[in] aValue A pointer to a C string to append as TLV's value.
637 // Static methods for finding TLVs within a sequence of TLVs.
640 * Searches in a given sequence of TLVs to find the first TLV of a given type.
642 * @param[in] aTlvsStart A pointer to the start of the sequence of TLVs to search within.
646 * @returns A pointer to the TLV within the TLV sequence if found, or `nullptr` if not found.
651 * Searches in a given sequence of TLVs to find the first TLV of a given type.
653 * @param[in] aTlvsStart A pointer to the start of the sequence of TLVs to search within.
657 * @returns A pointer to the TLV within the TLV sequence if found, or `nullptr` if not found.
665 * Searches in a given sequence of TLVs to find the first TLV with a give template `TlvType`.
669 * @param[in] aTlvsStart A pointer to the start of the sequence of TLVs to search within.
672 * @returns A pointer to the TLV if found, or `nullptr` if not found.
680 * Searches in a given sequence of TLVs to find the first TLV with a give template `TlvType`.
684 * @param[in] aTlvsStart A pointer to the start of the sequence of TLVs to search within.
687 * @returns A pointer to the TLV if found, or `nullptr` if not found.
735 * Casts a `Tlv` pointer to a given subclass `TlvType` pointer.
737 * @tparam TlvType The TLV type to cast into. MUST be a subclass of `Tlv`.
739 * @param[in] aTlv A pointer to a `Tlv` to convert/cast to a `TlvType`.
741 * @returns A `TlvType` pointer to `aTlv`.
746 * Casts a `Tlv` pointer to a given subclass `TlvType` pointer.
748 * @tparam TlvType The TLV type to cast into. MUST be a subclass of `Tlv`.
750 * @param[in] aTlv A pointer to a `Tlv` to convert/cast to a `TlvType`.
752 * @returns A `TlvType` pointer to `aTlv`.
757 * Casts a `Tlv` reference to a given subclass `TlvType` reference.
759 * @tparam TlvType The TLV type to cast into. MUST be a subclass of `Tlv`.
761 * @param[in] aTlv A reference to a `Tlv` to convert/cast to a `TlvType`.
763 * @returns A `TlvType` reference to `aTlv`.
768 * Casts a `Tlv` reference to a given subclass `TlvType` reference.
770 * @tparam TlvType The TLV type to cast into. MUST be a subclass of `Tlv`.
772 * @param[in] aTlv A reference to a `Tlv` to convert/cast to a `TlvType`.
774 * @returns A `TlvType` reference to `aTlv`.
779 * Defines constants for a TLV.
790 * Defines constants and types for a simple TLV with an unsigned int value type.
809 * Defines constants and types for a simple TLV with a single value.
820 … static_assert(!TypeTraits::IsPointer<TlvValueType>::kValue, "TlvValueType must not be a pointer");
832 * Defines constants and types for a simple TLV with a UTF-8 string value.