Qt 4.8
Public Functions | Properties | List of all members
QTtfStream Class Reference

Public Functions

void align4 ()
 
int offset () const
 
QTtfStreamoperator<< (quint8 v)
 
QTtfStreamoperator<< (quint16 v)
 
QTtfStreamoperator<< (quint32 v)
 
QTtfStreamoperator<< (qint8 v)
 
QTtfStreamoperator<< (qint16 v)
 
QTtfStreamoperator<< (qint32 v)
 
QTtfStreamoperator<< (qint64 v)
 
 QTtfStream (QByteArray &ba)
 
void setOffset (int o)
 

Properties

uchardata
 
ucharstart
 

Detailed Description

Definition at line 550 of file qfontsubset.cpp.

Constructors and Destructors

◆ QTtfStream()

QTtfStream::QTtfStream ( QByteArray ba)
inline

Definition at line 552 of file qfontsubset.cpp.

552 : data((uchar *)ba.data()) { start = data; }
char * data()
Returns a pointer to the data stored in the byte array.
Definition: qbytearray.h:429
uchar * data
uchar * start
unsigned char uchar
Definition: qglobal.h:994

Functions

◆ align4()

void QTtfStream::align4 ( )
inline

Definition at line 563 of file qfontsubset.cpp.

563 { while (offset() & 3) { *data = '\0'; ++data; } }
uchar * data
int offset() const

◆ offset()

int QTtfStream::offset ( ) const
inline

Definition at line 561 of file qfontsubset.cpp.

Referenced by generateGlyphTables(), generateHead(), generateHhea(), generateMaxp(), and getGlyphData().

561 { return data - start; }
uchar * data
uchar * start

◆ operator<<() [1/7]

QTtfStream& QTtfStream::operator<< ( quint8  v)
inline

Definition at line 553 of file qfontsubset.cpp.

553 { *data = v; ++data; return *this; }
uchar * data

◆ operator<<() [2/7]

QTtfStream& QTtfStream::operator<< ( quint16  v)
inline

Definition at line 554 of file qfontsubset.cpp.

554 { qToBigEndian(v, data); data += sizeof(v); return *this; }
uchar * data
T qToBigEndian(T source)
Definition: qendian.h:337

◆ operator<<() [3/7]

QTtfStream& QTtfStream::operator<< ( quint32  v)
inline

Definition at line 555 of file qfontsubset.cpp.

555 { qToBigEndian(v, data); data += sizeof(v); return *this; }
uchar * data
T qToBigEndian(T source)
Definition: qendian.h:337

◆ operator<<() [4/7]

QTtfStream& QTtfStream::operator<< ( qint8  v)
inline

Definition at line 556 of file qfontsubset.cpp.

556 { *data = quint8(v); ++data; return *this; }
unsigned char quint8
Definition: qglobal.h:934
uchar * data

◆ operator<<() [5/7]

QTtfStream& QTtfStream::operator<< ( qint16  v)
inline

Definition at line 557 of file qfontsubset.cpp.

557 { qToBigEndian(v, data); data += sizeof(v); return *this; }
uchar * data
T qToBigEndian(T source)
Definition: qendian.h:337

◆ operator<<() [6/7]

QTtfStream& QTtfStream::operator<< ( qint32  v)
inline

Definition at line 558 of file qfontsubset.cpp.

558 { qToBigEndian(v, data); data += sizeof(v); return *this; }
uchar * data
T qToBigEndian(T source)
Definition: qendian.h:337

◆ operator<<() [7/7]

QTtfStream& QTtfStream::operator<< ( qint64  v)
inline

Definition at line 559 of file qfontsubset.cpp.

559 { qToBigEndian(v, data); data += sizeof(v); return *this; }
uchar * data
T qToBigEndian(T source)
Definition: qendian.h:337

◆ setOffset()

void QTtfStream::setOffset ( int  o)
inline

Definition at line 562 of file qfontsubset.cpp.

562 { data = start + o; }
uchar * data
uchar * start

Properties

◆ data

uchar* QTtfStream::data
private

Definition at line 565 of file qfontsubset.cpp.

◆ start

uchar* QTtfStream::start
private

Definition at line 566 of file qfontsubset.cpp.


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