pub unsafe extern "C" fn otNetDataGet(
    aInstance: *mut otInstance,
    aStable: bool,
    aData: *mut u8,
    aDataLength: *mut u8
) -> otError
Expand description

Provide full or stable copy of the Partition’s Thread Network Data.

@param[in] aInstance A pointer to an OpenThread instance. @param[in] aStable TRUE when copying the stable version, FALSE when copying the full version. @param[out] aData A pointer to the data buffer. @param[in,out] aDataLength On entry, size of the data buffer pointed to by @p aData. On exit, number of copied bytes.

@retval OT_ERROR_NONE Successfully copied the Thread Network Data into @p aData and updated @p aDataLength. @retval OT_ERROR_NO_BUFS Not enough space in @p aData to fully copy the Thread Network Data.