Qt 6.x
The Qt SDK
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 (QByteArray *byteArray)
 Create a QNonContiguousByteDevice out of a QByteArray.
 
static std::shared_ptr< QNonContiguousByteDevicecreateShared (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 49 of file qnoncontiguousbytedevice_p.h.

Member Function Documentation

◆ create() [1/3]

QNonContiguousByteDevice * QNonContiguousByteDeviceFactory::create ( QByteArray byteArray)
static

Create a QNonContiguousByteDevice out of a QByteArray.

Definition at line 508 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 446 of file qnoncontiguousbytedevice.cpp.

References device.

◆ create() [3/3]

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

Create a QNonContiguousByteDevice out of a QRingBuffer.

Definition at line 486 of file qnoncontiguousbytedevice.cpp.

◆ createShared() [1/3]

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

Create a QNonContiguousByteDevice out of a QByteArray.

Definition at line 518 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 466 of file qnoncontiguousbytedevice.cpp.

References device.

Referenced by QNetworkAccessBackend::createUploadByteDevice(), and QNetworkReplyHttpImplPrivate::createUploadByteDevice().

+ Here is the caller graph for this function:

◆ 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 496 of file qnoncontiguousbytedevice.cpp.

◆ wrap()

QIODevice * QNonContiguousByteDeviceFactory::wrap ( QNonContiguousByteDevice byteDevice)
static

Wrap the byteDevice (possibly again) into a QIODevice.

Definition at line 530 of file qnoncontiguousbytedevice.cpp.

Referenced by QNetworkAccessBackend::createUploadByteDevice().

+ Here is the caller graph for this function:

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