#include <src/common/tlv.hpp>
This class implements TMF Tlv functionality.
◆ GetLength()
uint16_t otbr::Tlv::GetLength |
( |
void |
| ) |
const |
|
inline |
This method returns the Tlv length.
- Returns
- The Tlv length.
◆ GetNext() [1/2]
Tlv* otbr::Tlv::GetNext |
( |
void |
| ) |
|
|
inline |
This method returns the pointer to the next Tlv.
- Returns
- A pointer to the next Tlv.
◆ GetNext() [2/2]
const Tlv* otbr::Tlv::GetNext |
( |
void |
| ) |
const |
|
inline |
This method returns the pointer to the next Tlv.
- Returns
- A pointer to the next Tlv.
◆ GetType()
uint8_t otbr::Tlv::GetType |
( |
void |
| ) |
const |
|
inline |
This method returns the Tlv type.
- Returns
- The Tlv type.
◆ GetValue()
const void* otbr::Tlv::GetValue |
( |
void |
| ) |
const |
|
inline |
This method returns a pointer to the value.
- Returns
- The Tlv value.
◆ GetValueUInt16()
uint16_t otbr::Tlv::GetValueUInt16 |
( |
void |
| ) |
const |
|
inline |
This method returns the value as a uint16_t.
- Returns
- The uint16_t value.
◆ GetValueUInt8()
uint8_t otbr::Tlv::GetValueUInt8 |
( |
void |
| ) |
const |
|
inline |
This method returns the value as a uint8_t.
- Returns
- The uint8_t value.
◆ SetLength()
void otbr::Tlv::SetLength |
( |
uint16_t |
aLength, |
|
|
bool |
aForceExtended = false |
|
) |
| |
|
inline |
This method sets the length.
◆ SetType()
void otbr::Tlv::SetType |
( |
uint8_t |
aType | ) |
|
|
inline |
This method sets the Tlv type.
◆ SetValue() [1/6]
void otbr::Tlv::SetValue |
( |
const void * |
aValue, |
|
|
uint16_t |
aLength, |
|
|
bool |
aForceExtended = false |
|
) |
| |
|
inline |
This method copies the value.
◆ SetValue() [2/6]
void otbr::Tlv::SetValue |
( |
int8_t |
aValue | ) |
|
|
inline |
This method sets int8_t as the value.
- Parameters
-
[in] | aValue | The int8_t value. |
◆ SetValue() [3/6]
void otbr::Tlv::SetValue |
( |
uint16_t |
aValue | ) |
|
|
inline |
This method sets uint16_t as the value.
- Parameters
-
[in] | aValue | The uint16_t value. |
◆ SetValue() [4/6]
void otbr::Tlv::SetValue |
( |
uint32_t |
aValue | ) |
|
|
inline |
This method sets a uint32_t as the value.
- Parameters
-
[in] | aValue | The uint32_t value. |
◆ SetValue() [5/6]
void otbr::Tlv::SetValue |
( |
uint64_t |
aValue | ) |
|
|
inline |
This method sets a uint64_t as the value.
- Parameters
-
[in] | aValue | The uint64_t value. |
◆ SetValue() [6/6]
void otbr::Tlv::SetValue |
( |
uint8_t |
aValue | ) |
|
|
inline |
This method sets uint8_t as the value.
- Parameters
-
[in] | aValue | The uint8_t value. |
The documentation for this class was generated from the following file: