openthread-br  0.3.0-72c0388
Public Member Functions | List of all members
otbr::Tlv Class Reference

#include <src/common/tlv.hpp>

Public Member Functions

uint8_t GetType (void) const
 
void SetType (uint8_t aType)
 
uint16_t GetLength (void) const
 
void SetLength (uint16_t aLength, bool aForceExtended=false)
 
const void * GetValue (void) const
 
uint16_t GetValueUInt16 (void) const
 
uint8_t GetValueUInt8 (void) const
 
void SetValue (uint64_t aValue)
 
void SetValue (uint32_t aValue)
 
void SetValue (uint16_t aValue)
 
void SetValue (uint8_t aValue)
 
void SetValue (int8_t aValue)
 
void SetValue (const void *aValue, uint16_t aLength, bool aForceExtended=false)
 
const TlvGetNext (void) const
 
TlvGetNext (void)
 

Detailed Description

This class implements TMF Tlv functionality.

Member Function Documentation

◆ 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]aValueThe int8_t value.

◆ SetValue() [3/6]

void otbr::Tlv::SetValue ( uint16_t  aValue)
inline

This method sets uint16_t as the value.

Parameters
[in]aValueThe 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]aValueThe 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]aValueThe uint64_t value.

◆ SetValue() [6/6]

void otbr::Tlv::SetValue ( uint8_t  aValue)
inline

This method sets uint8_t as the value.

Parameters
[in]aValueThe uint8_t value.

The documentation for this class was generated from the following file: