src/core/thread/network_data.hpp
NetworkData(Instance &aInstance, const NetworkDataTlv *aStartTlv, const NetworkDataTlv *aEndTlv)
        : InstanceLocator(aInstance)
        , mTlvs(reinterpret_cast<const uint8_t *>(aStartTlv))
        , mLength(static_cast<uint8_t>(reinterpret_cast<const uint8_t *>(aEndTlv) -
                                       reinterpret_cast<const uint8_t *>(aStartTlv)))
    {
    }
/**
     * This constructor initializes the `NetworkData` from a range of TLVs (given as pair of start and end pointers).
     *
     * @param[in] aInstance     A reference to the OpenThread instance.
     * @param[in] aStartTlv     A pointer to the start of the TLVs buffer.
     * @param[in] aEndTlv       A pointer to the end of the TLVs buffer.
     *
     */
This constructor initializes the `NetworkData` from a range of TLVs (given as pair of start and end pointers).
@param[in] aInstance     A reference to the OpenThread instance.
@param[in] aStartTlv     A pointer to the start of the TLVs buffer.
@param[in] aEndTlv       A pointer to the end of the TLVs buffer.
This constructor initializes the ` NetworkData ` from a range of TLVs ( given as pair of start and end pointers ) . @param [ in ] aInstance A reference to the OpenThread instance . @param [ in ] aStartTlv A pointer to the start of the TLVs buffer . @param [ in ] aEndTlv A pointer to the end of the TLVs buffer .
NetworkData(Instance &aInstance, const NetworkDataTlv *aStartTlv, const NetworkDataTlv *aEndTlv)
        : InstanceLocator(aInstance)
        , mTlvs(reinterpret_cast<const uint8_t *>(aStartTlv))
        , mLength(static_cast<uint8_t>(reinterpret_cast<const uint8_t *>(aEndTlv) -
                                       reinterpret_cast<const uint8_t *>(aStartTlv)))
    {
    }
NetworkData ( Instance & aInstance , const NetworkDataTlv * aStartTlv , const NetworkDataTlv * aEndTlv ) : InstanceLocator ( aInstance ) , mTlvs ( reinterpret_cast < const uint8_t * > ( aStartTlv ) ) , mLength ( static_cast < uint8_t > ( reinterpret_cast < const uint8_t * > ( aEndTlv ) - reinterpret_cast < const uint8_t * > ( aStartTlv ) ) ) { }
This constructor initializes the `NetworkData` from a range of TLVs (given as pair of start and end pointers).
This constructor initializes the ` NetworkData ` from a range of TLVs ( given as pair of start and end pointers ) .