Logo Search packages:      
Sourcecode: qt4-x11 version File versions  Download package

qint64 QIODeviceDelegate::bytesAvailable (  ) const [virtual]

Returns the number of bytes that are available for reading. This function is commonly used with sequential devices to determine the number of bytes to allocate in a buffer before reading.

Subclasses that reimplement this function must call the base implementation in order to include the size of QIODevices' buffer. Example:

doc/src/snippets/code/src_corelib_io_qiodevice.cpp 1

See also:
bytesToWrite(), readyRead(), isSequential()

Reimplemented from QIODevice.

Definition at line 98 of file qiodevicedelegate.cpp.

References QIODevice::bytesAvailable().

{
    return m_source->bytesAvailable();
}

Here is the call graph for this function:


Generated by  Doxygen 1.6.0   Back to index