You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
425 B
C++
18 lines
425 B
C++
#include "TagInt.h"
|
|
|
|
#include <QtEndian>
|
|
#include <QtCore/QDataStream>
|
|
|
|
TagInt::TagInt (const qint32 value) : AbstractNamedTag(ID), m_value(value) {}
|
|
|
|
const qint32 TagInt::value () const {
|
|
return m_value;
|
|
}
|
|
|
|
void TagInt::readPayloadFromData (QDataStream &data) {
|
|
data >> m_value;
|
|
m_value = qFromBigEndian(m_value);
|
|
}
|
|
void TagInt::writePayloadToData (QDataStream &data) const {
|
|
data << qToBigEndian(m_value);
|
|
} |