ot::NetworkData::MutableNetworkData::AppendTlv() method
Grows the Network Data to append a TLV with a requested size. On success, the returned TLV is not initialized (i.e., the TLV Length field is not set) but the requested size for it (@p aTlvSize number of bytes) is reserved in the Network Data.
Arguments
aTlvSize
The size of TLV (total number of bytes including Type, Length, and Value fields)
Return value
A pointer to the TLV if there is space to grow Network Data, or `nullptr` if no space to grow the Network Data with requested @p aTlvSize number of bytes.
![]()
serviceTlv = As<ServiceTlv>(AppendTlv(serviceTlvSize));
ot::NetworkData::MutableNetworkData::AppendTlv() is called by 1 function and calls 2 functions:
![]()
ot::NetworkData::MutableNetworkData::AppendTlv()
ot::NetworkData::MutableNetworkData::AppendTlv() reads 1 variable and writes 5 variables:
![]()
ot::NetworkData::MutableNetworkData::AppendTlv()