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
QtPrivate::QIOOperationDataStorage Class Reference

#include <qiooperation_p_p.h>

Collaboration diagram for QtPrivate::QIOOperationDataStorage:

Public Types

using ReadSpans = QVarLengthArray<QSpan<std::byte>, DefaultNumOfBuffers>
using WriteSpans = QVarLengthArray<QSpan<const std::byte>, DefaultNumOfBuffers>

Public Member Functions

 QIOOperationDataStorage ()
 QIOOperationDataStorage (QSpan< const QSpan< std::byte > > s)
 QIOOperationDataStorage (QSpan< const QSpan< const std::byte > > s)
 QIOOperationDataStorage (const QByteArray &a)
 QIOOperationDataStorage (QByteArray &&a)
bool isEmpty () const
bool containsReadSpans () const
bool containsWriteSpans () const
bool containsByteArray () const
ReadSpansgetReadSpans ()
const ReadSpansgetReadSpans () const
WriteSpansgetWriteSpans ()
const WriteSpansgetWriteSpans () const
QByteArraygetByteArray ()
const QByteArraygetByteArray () const
template<typename T>
getValue () const =delete
template<>
QSpan< const QSpan< std::byte > > getValue () const
template<>
QSpan< const QSpan< const std::byte > > getValue () const
template<>
QByteArray getValue () const

Static Public Attributes

static constexpr qsizetype DefaultNumOfBuffers = 10

Detailed Description

Definition at line 33 of file qiooperation_p_p.h.

Member Typedef Documentation

◆ ReadSpans

◆ WriteSpans

Constructor & Destructor Documentation

◆ QIOOperationDataStorage() [1/5]

QtPrivate::QIOOperationDataStorage::QIOOperationDataStorage ( )
inlineexplicit

Definition at line 45 of file qiooperation_p_p.h.

References QIOOperationDataStorage().

Referenced by QIOOperationDataStorage(), QRandomAccessAsyncFilePrivate::flush(), and QRandomAccessAsyncFilePrivate::open().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ QIOOperationDataStorage() [2/5]

QtPrivate::QIOOperationDataStorage::QIOOperationDataStorage ( QSpan< const QSpan< std::byte > > s)
inlineexplicit

Definition at line 48 of file qiooperation_p_p.h.

◆ QIOOperationDataStorage() [3/5]

QtPrivate::QIOOperationDataStorage::QIOOperationDataStorage ( QSpan< const QSpan< const std::byte > > s)
inlineexplicit

Definition at line 51 of file qiooperation_p_p.h.

◆ QIOOperationDataStorage() [4/5]

QtPrivate::QIOOperationDataStorage::QIOOperationDataStorage ( const QByteArray & a)
inlineexplicit

Definition at line 54 of file qiooperation_p_p.h.

◆ QIOOperationDataStorage() [5/5]

QtPrivate::QIOOperationDataStorage::QIOOperationDataStorage ( QByteArray && a)
inlineexplicit

Definition at line 57 of file qiooperation_p_p.h.

Member Function Documentation

◆ containsByteArray()

bool QtPrivate::QIOOperationDataStorage::containsByteArray ( ) const
inline

Definition at line 70 of file qiooperation_p_p.h.

◆ containsReadSpans()

bool QtPrivate::QIOOperationDataStorage::containsReadSpans ( ) const
inline

Definition at line 64 of file qiooperation_p_p.h.

◆ containsWriteSpans()

bool QtPrivate::QIOOperationDataStorage::containsWriteSpans ( ) const
inline

Definition at line 67 of file qiooperation_p_p.h.

◆ getByteArray() [1/2]

QByteArray & QtPrivate::QIOOperationDataStorage::getByteArray ( )
inline

Definition at line 95 of file qiooperation_p_p.h.

◆ getByteArray() [2/2]

const QByteArray & QtPrivate::QIOOperationDataStorage::getByteArray ( ) const
inline

Definition at line 100 of file qiooperation_p_p.h.

◆ getReadSpans() [1/2]

ReadSpans & QtPrivate::QIOOperationDataStorage::getReadSpans ( )
inline

Definition at line 73 of file qiooperation_p_p.h.

◆ getReadSpans() [2/2]

const ReadSpans & QtPrivate::QIOOperationDataStorage::getReadSpans ( ) const
inline

Definition at line 78 of file qiooperation_p_p.h.

◆ getValue() [1/4]

template<>
QSpan< const QSpan< std::byte > > QtPrivate::QIOOperationDataStorage::getValue ( ) const
inline

Definition at line 115 of file qiooperation_p_p.h.

◆ getValue() [2/4]

template<>
QSpan< const QSpan< const std::byte > > QtPrivate::QIOOperationDataStorage::getValue ( ) const
inline

Definition at line 125 of file qiooperation_p_p.h.

◆ getValue() [3/4]

template<>
QByteArray QtPrivate::QIOOperationDataStorage::getValue ( ) const
inline

Definition at line 135 of file qiooperation_p_p.h.

◆ getValue() [4/4]

template<typename T>
T QtPrivate::QIOOperationDataStorage::getValue ( ) const
delete

◆ getWriteSpans() [1/2]

WriteSpans & QtPrivate::QIOOperationDataStorage::getWriteSpans ( )
inline

Definition at line 84 of file qiooperation_p_p.h.

◆ getWriteSpans() [2/2]

const WriteSpans & QtPrivate::QIOOperationDataStorage::getWriteSpans ( ) const
inline

Definition at line 89 of file qiooperation_p_p.h.

◆ isEmpty()

bool QtPrivate::QIOOperationDataStorage::isEmpty ( ) const
inline

Definition at line 61 of file qiooperation_p_p.h.

Member Data Documentation

◆ DefaultNumOfBuffers

qsizetype QtPrivate::QIOOperationDataStorage::DefaultNumOfBuffers = 10
staticconstexpr

Definition at line 41 of file qiooperation_p_p.h.


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