Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QPdf::ByteStream Class Reference

#include <qpdf_p.h>

+ Inheritance diagram for QPdf::ByteStream:
+ Collaboration diagram for QPdf::ByteStream:

Public Member Functions

 ByteStream (bool fileBacking=false)
 
 ByteStream (QByteArray *ba, bool fileBacking=false)
 
 ~ByteStream ()
 
ByteStreamoperator<< (char chr)
 
ByteStreamoperator<< (const char *str)
 
ByteStreamoperator<< (const QByteArray &str)
 
ByteStreamoperator<< (const ByteStream &src)
 
ByteStreamoperator<< (qreal val)
 
ByteStreamoperator<< (int val)
 
ByteStreamoperator<< (uint val)
 
ByteStreamoperator<< (qint64 val)
 
ByteStreamoperator<< (const QPointF &p)
 
QIODevicestream ()
 
void clear ()
 

Static Public Member Functions

static int maxMemorySize ()
 
static int chunkSize ()
 

Protected Member Functions

void constructor_helper (QIODevice *dev)
 
void constructor_helper (QByteArray *ba)
 

Detailed Description

Definition at line 37 of file qpdf_p.h.

Constructor & Destructor Documentation

◆ ByteStream() [1/2]

QPdf::ByteStream::ByteStream ( bool  fileBacking = false)
explicit

Definition at line 186 of file qpdf.cpp.

References QIODevice::open(), and QIODeviceBase::ReadWrite.

+ Here is the call graph for this function:

◆ ByteStream() [2/2]

QPdf::ByteStream::ByteStream ( QByteArray ba,
bool  fileBacking = false 
)
explicit

Definition at line 177 of file qpdf.cpp.

References QIODeviceBase::Append, QIODevice::open(), and QIODeviceBase::ReadWrite.

+ Here is the call graph for this function:

◆ ~ByteStream()

QPdf::ByteStream::~ByteStream ( )

Definition at line 195 of file qpdf.cpp.

Member Function Documentation

◆ chunkSize()

static int QPdf::ByteStream::chunkSize ( )
inlinestatic

Definition at line 61 of file qpdf_p.h.

Referenced by operator<<().

+ Here is the caller graph for this function:

◆ clear()

void QPdf::ByteStream::clear ( )

Definition at line 268 of file qpdf.cpp.

References QIODevice::open(), QIODeviceBase::ReadWrite, and QIODeviceBase::Truncate.

+ Here is the call graph for this function:

◆ constructor_helper() [1/2]

void QPdf::ByteStream::constructor_helper ( QByteArray ba)
protected

Definition at line 273 of file qpdf.cpp.

References ba, QIODevice::open(), and QIODeviceBase::ReadWrite.

+ Here is the call graph for this function:

◆ constructor_helper() [2/2]

void QPdf::ByteStream::constructor_helper ( QIODevice dev)
protected

References ba.

◆ maxMemorySize()

static int QPdf::ByteStream::maxMemorySize ( )
inlinestatic

Definition at line 60 of file qpdf_p.h.

◆ operator<<() [1/9]

ByteStream & QPdf::ByteStream::operator<< ( char  chr)

Definition at line 200 of file qpdf.cpp.

References QIODevice::write().

+ Here is the call graph for this function:

◆ operator<<() [2/9]

ByteStream & QPdf::ByteStream::operator<< ( const ByteStream src)

Definition at line 221 of file qpdf.cpp.

References chunkSize(), pos, Q_ASSERT, and QIODevice::write().

+ Here is the call graph for this function:

◆ operator<<() [3/9]

ByteStream & QPdf::ByteStream::operator<< ( const char *  str)

Definition at line 207 of file qpdf.cpp.

References str, and QIODevice::write().

+ Here is the call graph for this function:

◆ operator<<() [4/9]

ByteStream & QPdf::ByteStream::operator<< ( const QByteArray str)

Definition at line 214 of file qpdf.cpp.

References str, and QIODevice::write().

+ Here is the call graph for this function:

◆ operator<<() [5/9]

ByteStream & QPdf::ByteStream::operator<< ( const QPointF p)

Definition at line 252 of file qpdf.cpp.

References qt_real_to_string().

+ Here is the call graph for this function:

◆ operator<<() [6/9]

ByteStream & QPdf::ByteStream::operator<< ( int  val)

Definition at line 245 of file qpdf.cpp.

References qt_int_to_string().

+ Here is the call graph for this function:

◆ operator<<() [7/9]

ByteStream & QPdf::ByteStream::operator<< ( qint64  val)
inline

Definition at line 54 of file qpdf_p.h.

◆ operator<<() [8/9]

ByteStream & QPdf::ByteStream::operator<< ( qreal  val)

Definition at line 238 of file qpdf.cpp.

References qt_real_to_string().

+ Here is the call graph for this function:

◆ operator<<() [9/9]

ByteStream & QPdf::ByteStream::operator<< ( uint  val)
inline

Definition at line 53 of file qpdf_p.h.

◆ stream()

QIODevice * QPdf::ByteStream::stream ( )

Definition at line 261 of file qpdf.cpp.

References QIODevice::reset().

Referenced by moveToHook().

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

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