#include <QtCore/qglobal.h>
#include <stdlib.h>
Go to the source code of this file.
◆ qbswap() [1/2]
template<typename T >
void qbswap |
( |
const T |
src, |
|
|
uchar * |
dest |
|
) |
| |
|
inline |
◆ qbswap() [2/2]
◆ qbswap< qint16 >()
Definition at line 330 of file qendian.h.
quint16 qbswap< quint16 >(quint16 source)
◆ qbswap< qint32 >()
Definition at line 325 of file qendian.h.
quint32 qbswap< quint32 >(quint32 source)
◆ qbswap< qint64 >()
Definition at line 320 of file qendian.h.
quint64 qbswap< quint64 >(quint64 source)
◆ qbswap< quint16 >()
◆ qbswap< quint32 >()
◆ qbswap< quint64 >()
◆ qbswap< quint8 >()
◆ qbswap_helper()
void qbswap_helper |
( |
const uchar * |
src, |
|
|
uchar * |
dest, |
|
|
int |
size |
|
) |
| |
|
inline |
Definition at line 63 of file qendian.h.
Referenced by qbswap().
65 for (
int i = 0; i < size ; ++i) dest[i] = src[size - 1 - i];
◆ qFromBigEndian() [1/2]
template<class T >
T qFromBigEndian |
( |
const uchar * |
src | ) |
|
|
inline |
◆ qFromBigEndian() [2/2]
template<typename T >
T qFromBigEndian |
( |
T |
source | ) |
|
|
inline |
◆ qFromBigEndian< qint16 >()
Definition at line 264 of file qendian.h.
quint16 qFromBigEndian< quint16 >(const uchar *src)
◆ qFromBigEndian< qint32 >()
Definition at line 261 of file qendian.h.
quint32 qFromBigEndian< quint32 >(const uchar *src)
◆ qFromBigEndian< qint64 >()
Definition at line 258 of file qendian.h.
quint64 qFromBigEndian< quint64 >(const uchar *src)
◆ qFromBigEndian< quint16 >()
Definition at line 249 of file qendian.h.
Referenced by QFontEngineQPA::extractHeaderField(), QFontEngineQPF::extractHeaderField(), QUuid::fromRfc4122(), QFontEngine::getCMap(), getFontTable(), QFontEngine::getTrueTypeGlyphIndex(), QFontEngine::glyphCount(), initializeDb(), QFontEngine::loadKerningPairs(), QFontEngineMac::properties(), QFontEngineMac::QFontEngineMac(), QFontEngineQPA::QFontEngineQPA(), QFontEngineQPF::QFontEngineQPF(), qFromBigEndian< qint16 >(), qt_socks5_get_host_address_and_port(), QFontEngineQPA::verifyHeader(), and QFontEngineQPF::verifyHeader().
◆ qFromBigEndian< quint32 >()
Definition at line 239 of file qendian.h.
Referenced by checksum(), QUtf32::convertToUnicode(), QFontEngineQPA::findGlyph(), QFontEngineQPF::findGlyph(), QUuid::fromRfc4122(), QFontEngine::getCMap(), getFamiliesAndSignatures(), getFontTable(), getTrueTypeFontOffsets(), QFontEngine::getTrueTypeGlyphIndex(), initWritingSystems(), QFontEngineQPA::QFontEngineQPA(), QFontEngineQPF::QFontEngineQPF(), qFromBigEndian< qint32 >(), qt_socks5_get_host_address_and_port(), QPAGenerator::writeHeader(), and QPFGenerator::writeHeader().
245 | src[0] *
quint32(0x01000000);
◆ qFromBigEndian< quint64 >()
◆ qFromLittleEndian() [1/2]
template<typename T >
T qFromLittleEndian |
( |
const uchar * |
src | ) |
|
|
inline |
◆ qFromLittleEndian() [2/2]
template<typename T >
T qFromLittleEndian |
( |
T |
source | ) |
|
|
inline |
Definition at line 343 of file qendian.h.
344 {
return qbswap<T>(source); }
◆ qFromLittleEndian< qint16 >()
Definition at line 171 of file qendian.h.
quint16 qFromLittleEndian< quint16 >(const uchar *src)
◆ qFromLittleEndian< qint32 >()
Definition at line 168 of file qendian.h.
quint32 qFromLittleEndian< quint32 >(const uchar *src)
◆ qFromLittleEndian< qint64 >()
Definition at line 165 of file qendian.h.
quint64 qFromLittleEndian< quint64 >(const uchar *src)
◆ qFromLittleEndian< quint16 >()
◆ qFromLittleEndian< quint32 >()
◆ qFromLittleEndian< quint64 >()
◆ qToBigEndian() [1/2]
template<typename T >
T qToBigEndian |
( |
T |
source | ) |
|
|
inline |
Definition at line 337 of file qendian.h.
Referenced by _q_toHex(), bindFont(), QRawFont::fontTable(), QHostAddress::isInSubnet(), QFontEngineQPF::loadGlyph(), QTtfStream::operator<<(), qToLittleEndian(), QNetmaskAddress::setAddress(), QUuid::toRfc4122(), QPAGenerator::writeUInt16(), QPFGenerator::writeUInt16(), QPAGenerator::writeUInt32(), and QPFGenerator::writeUInt32().
◆ qToBigEndian() [2/2]
template<typename T >
void qToBigEndian |
( |
T |
src, |
|
|
uchar * |
dest |
|
) |
| |
|
inline |
Definition at line 345 of file qendian.h.
346 { qToUnaligned<T>(src, dest); }
◆ qToLittleEndian() [1/2]
template<typename T >
T qToLittleEndian |
( |
T |
source | ) |
|
|
inline |
◆ qToLittleEndian() [2/2]
template<typename T >
void qToLittleEndian |
( |
T |
src, |
|
|
uchar * |
dest |
|
) |
| |
|
inline |
Definition at line 347 of file qendian.h.
348 { qbswap<T>(src, dest); }
◆ qToUnaligned()
template<typename T >
void qToUnaligned |
( |
const T |
src, |
|
|
uchar * |
dest |
|
) |
| |
|
inline |
Definition at line 81 of file qendian.h.
void * qMemCopy(void *dest, const void *src, size_t n)