C

QSafeByteArray Class

class SafeRenderer::QSafeByteArray

The QSafeBitmapBuffer class holds the byte array. More...

Header: #include <QSafeByteArray>
Since: QtSafeRenderer 1.2

This class was introduced in QtSafeRenderer 1.2.

Public Functions

SafeRenderer::quint16 readUInt16Value(size_t &offsetInWords, const SafeRenderer::quint16 dataLength = sizeof(quint16)) const
SafeRenderer::quint32 readUInt32Value(size_t &offsetInWords, const SafeRenderer::quint16 dataLength = sizeof(quint32)) const
SafeRenderer::quint32 readUInt32ValueConst(const size_t offsetInWords) const

Detailed Description

The QSafeBitmapBuffer holds the bytearray. Provides methods for reading an unsigned integer value from a data array.

Member Function Documentation

SafeRenderer::quint16 QSafeByteArray::readUInt16Value(size_t &offsetInWords, const SafeRenderer::quint16 dataLength = sizeof(quint16)) const

Reads and converts dataLength of the unsigned interger at offsetInWords. Increases the offsetInWords by a length of reading. It is safe to read from an unaligned memory. Returns the value at beforementioned point in memory.

SafeRenderer::quint32 QSafeByteArray::readUInt32Value(size_t &offsetInWords, const SafeRenderer::quint16 dataLength = sizeof(quint32)) const

Reads and converts 32-bit dataLength of the unsigned interger at offsetInWords. Increases the offsetInWords by a length of reading. It is safe to read from an unaligned memory. Returns the value at beforementioned point in memory.

SafeRenderer::quint32 QSafeByteArray::readUInt32ValueConst(const size_t offsetInWords) const

Reads and converts 32-bit data length of the unsigned interger at offsetInWords. It is safe to read from an unaligned memory. Returns the value at beforementioned point in memory.

Available under certain Qt licenses.
Find out more.