src/ncp/ncp_base.cpp
otError otNcpStreamWrite(int aStreamId, const uint8_t *aDataPtr, int aDataLen)
{
    otError           error = OT_ERROR_INVALID_STATE;
    ot::Ncp::NcpBase *ncp   = ot::Ncp::NcpBase::GetNcpInstance();

    if (ncp != nullptr)
    {
        error = ncp->StreamWrite(aStreamId, aDataPtr, aDataLen);
    }

    return error;
}
// ----------------------------------------------------------------------------
// MARK: Virtual Datastream I/O (Public API)
// ----------------------------------------------------------------------------
Virtual Datastream I/O (Public API)
Virtual Datastream I / O ( Public API )
otError otNcpStreamWrite(int aStreamId, const uint8_t *aDataPtr, int aDataLen)
{
    otError           error = OT_ERROR_INVALID_STATE;
    ot::Ncp::NcpBase *ncp   = ot::Ncp::NcpBase::GetNcpInstance();
    if (ncp != nullptr)
    {
        error = ncp->StreamWrite(aStreamId, aDataPtr, aDataLen);
    }
    return error;
}
otError otNcpStreamWrite ( int aStreamId , const uint8_t * aDataPtr , int aDataLen ) { otError error = OT_ERROR_INVALID_STATE ; ot :: Ncp :: NcpBase * ncp = ot :: Ncp :: NcpBase :: GetNcpInstance ( ) ; if ( ncp != nullptr ) { error = ncp -> StreamWrite ( aStreamId , aDataPtr , aDataLen ) ; } return error ; }
MARK: Virtual Datastream I/O (Public API)
MARK : Virtual Datastream I / O ( Public API )