Logo Search packages:      
Sourcecode: virtualbox-ose version File versions

DECLINLINE ( uint32_t   ) 

Get the amount of space available for writing.

Returns:
Number of available bytes.
Parameters:
pRingBuf The ring buffer.
Get the amount of data ready for reading.

Returns:
Number of ready bytes.
Parameters:
pRingBuf The ring buffer.

Definition at line 72 of file intnet.h.

{
    return pRingBuf->offRead <= pRingBuf->offWrite
        ?  pRingBuf->offEnd  - pRingBuf->offWrite + pRingBuf->offRead - pRingBuf->offStart - 1
        :  pRingBuf->offRead - pRingBuf->offWrite - 1;
}


Generated by  Doxygen 1.6.0   Back to index