okteta
allprimitivetypes.h
Go to the documentation of this file.
161 //TODO bool* ok parameter for when reading from model can cause errors (or exceptions sometime?)
162 template<typename T> static T readValue(const Okteta::AbstractByteArrayModel* input, Okteta::Address address,
could it be useful to hide the data access behind an iterator? * class KDataBufferIterator { public: ...
Definition: abstractbytearraymodel.h:79
bool readBits(quint8 bitCount, const Okteta::AbstractByteArrayModel *input, QSysInfo::Endian byteOrder, Okteta::Address address, BitCount64 bitsRemaining, quint8 *const bitOffset)
Reads given number of bits from input and sets value of this union to the new value.
Definition: allprimitivetypes.cpp:79
Definition: allprimitivetypes.h:65
bool operator<(AllPrimitiveTypes other) const
Not useful, but needed so we can store this in a QMap.
Definition: allprimitivetypes.h:108
AllPrimitiveTypes(quint64 val)
Definition: allprimitivetypes.h:87
Definition: endianness.h:33
virtual Size copyTo(Byte *dest, const AddressRange ©Range) const
copies the data of the section into a given array Dest.
Definition: abstractbytearraymodel.cpp:60
virtual Size size() const =0
static T readValue(const Okteta::AbstractByteArrayModel *input, Okteta::Address address, QSysInfo::Endian endianess, quint8 bitOffset)
Read data of type T from the model.
Definition: allprimitivetypes.h:204
AllPrimitiveTypes(quint32 val)
Definition: allprimitivetypes.h:91
T value() const
bool operator!=(AllPrimitiveTypes other) const
Definition: allprimitivetypes.h:99
AllPrimitiveTypes(quint16 val)
Definition: allprimitivetypes.h:93
AllPrimitiveTypes(const AllPrimitiveTypes &a)
Definition: allprimitivetypes.h:86
This union holds the value of one primitive datatype.
Definition: allprimitivetypes.h:70
bool operator==(AllPrimitiveTypes other) const
Definition: allprimitivetypes.h:103
Ensures that when used in a union the uint8 value will be equal to the lowest bits of the uint32 valu...
Definition: allprimitivetypes.h:50
bool writeBits(quint8 bitCount, AllPrimitiveTypes newValue, Okteta::AbstractByteArrayModel *out, QSysInfo::Endian byteOrder, Okteta::Address address, BitCount64 bitsRemaining, quint8 *const bitOffset)
Writes given number of bits to out.
Definition: allprimitivetypes.cpp:38
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:04:06 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:04:06 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.