Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QNonContiguousByteDeviceFactory Class Reference

\inmodule QtCore More...

#include <qnoncontiguousbytedevice_p.h>

Collaboration diagram for QNonContiguousByteDeviceFactory:

Static Public Member Functions

static QNonContiguousByteDevicecreate (QIODevice *device)
 Create a QNonContiguousByteDevice out of a QIODevice.
static std::shared_ptr< QNonContiguousByteDevicecreateShared (QIODevice *device)
 Create a QNonContiguousByteDevice out of a QIODevice, return it in a std::shared_ptr.
static QNonContiguousByteDevicecreate (const QByteArray &byteArray)
static std::shared_ptr< QNonContiguousByteDevicecreateShared (const QByteArray &byteArray)
 Create a QNonContiguousByteDevice out of a QByteArray.
static QNonContiguousByteDevicecreate (std::shared_ptr< QRingBuffer > ringBuffer)
 Create a QNonContiguousByteDevice out of a QRingBuffer.
static std::shared_ptr< QNonContiguousByteDevicecreateShared (std::shared_ptr< QRingBuffer > ringBuffer)
 Create a QNonContiguousByteDevice out of a QRingBuffer, return it in a std::shared_ptr.
static QIODevicewrap (QNonContiguousByteDevice *byteDevice)
 Wrap the byteDevice (possibly again) into a QIODevice.

Detailed Description

\inmodule QtCore

Since
4.6

Creates a QNonContiguousByteDevice out of a QIODevice, QByteArray etc.

See also
QNonContiguousByteDevice

Definition at line 50 of file qnoncontiguousbytedevice_p.h.

Member Function Documentation

◆ create() [1/3]

QNonContiguousByteDevice * QNonContiguousByteDeviceFactory::create ( const QByteArray & byteArray)
static

Definition at line 484 of file qnoncontiguousbytedevice.cpp.

◆ create() [2/3]

QNonContiguousByteDevice * QNonContiguousByteDeviceFactory::create ( QIODevice * device)
static

Create a QNonContiguousByteDevice out of a QIODevice.

For QFile, QBuffer and all other QIoDevice, sequential or not.

Definition at line 420 of file qnoncontiguousbytedevice.cpp.

◆ create() [3/3]

QNonContiguousByteDevice * QNonContiguousByteDeviceFactory::create ( std::shared_ptr< QRingBuffer > ringBuffer)
static

Create a QNonContiguousByteDevice out of a QRingBuffer.

Definition at line 461 of file qnoncontiguousbytedevice.cpp.

◆ createShared() [1/3]

std::shared_ptr< QNonContiguousByteDevice > QNonContiguousByteDeviceFactory::createShared ( const QByteArray & byteArray)
static

Create a QNonContiguousByteDevice out of a QByteArray.

Definition at line 495 of file qnoncontiguousbytedevice.cpp.

◆ createShared() [2/3]

std::shared_ptr< QNonContiguousByteDevice > QNonContiguousByteDeviceFactory::createShared ( QIODevice * device)
static

Create a QNonContiguousByteDevice out of a QIODevice, return it in a std::shared_ptr.

For QFile, QBuffer and all other QIODevice, sequential or not.

Definition at line 440 of file qnoncontiguousbytedevice.cpp.

◆ createShared() [3/3]

std::shared_ptr< QNonContiguousByteDevice > QNonContiguousByteDeviceFactory::createShared ( std::shared_ptr< QRingBuffer > ringBuffer)
static

Create a QNonContiguousByteDevice out of a QRingBuffer, return it in a std::shared_ptr.

Definition at line 472 of file qnoncontiguousbytedevice.cpp.

◆ wrap()

QIODevice * QNonContiguousByteDeviceFactory::wrap ( QNonContiguousByteDevice * byteDevice)
static

Wrap the byteDevice (possibly again) into a QIODevice.

Definition at line 507 of file qnoncontiguousbytedevice.cpp.


The documentation for this class was generated from the following files: