Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
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 518 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 454 of file qnoncontiguousbytedevice.cpp.

References device.

Referenced by QHttp2Stream::sendDATA().

+ Here is the caller graph for this function:

◆ create() [3/3]

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

Create a QNonContiguousByteDevice out of a QRingBuffer.

Definition at line 495 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 529 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 474 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 506 of file qnoncontiguousbytedevice.cpp.

◆ wrap()

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

Wrap the byteDevice (possibly again) into a QIODevice.

Definition at line 541 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: