libClearCore/src/UsbManager.cpp
int32_t UsbManager::AvailableForWrite() {
    int32_t difference = m_outHead - m_outTail - 1;

    if (difference < 0) {
        difference += sizeof(m_bufferOut);
    }

    return difference;
}
/**
    Returns the number of available characters in the transmit buffer
**/
Returns the number of available characters in the transmit buffer
Returns the number of available characters in the transmit buffer
int32_t UsbManager::AvailableForWrite() {
    int32_t difference = m_outHead - m_outTail - 1;
    if (difference < 0) {
        difference += sizeof(m_bufferOut);
    }
    return difference;
}
int32_t UsbManager :: AvailableForWrite ( ) { int32_t difference = m_outHead - m_outTail - 1 ; if ( difference < 0 ) { difference += sizeof ( m_bufferOut ) ; } return difference ; }
Returns the number of available characters in the transmit buffer
Returns the number of available characters in the transmit buffer