29#include "io_helpers.h"
89 ID3D_NOTICE(
"ID3_FieldImpl::ParseInteger(): beg = " << reader.
getBeg() );
90 ID3D_NOTICE(
"ID3_FieldImpl::ParseInteger(): cur = " << reader.
getCur() );
91 ID3D_NOTICE(
"ID3_FieldImpl::ParseInteger(): end = " << reader.
getEnd() );
96 size_t fixed = this->
Size();
97 size_t nBytes = (fixed > 0) ? fixed :
sizeof(uint32);
98 this->
Set(io::readBENumber(reader, nBytes));
107 io::writeBENumber(writer, _integer, this->
Size());
bool ParseInteger(ID3_Reader &)
void RenderInteger(ID3_Writer &) const
uint32 GetInteger() const
ID3_FieldType GetType() const
void Set(uint32)
Sets the value of the field to the specified integer.
void Clear()
Clears any data and frees any memory associated with the field.
uint32 Get() const
Returns the value of the integer field.
size_t Size() const
Returns the size of a field.
virtual pos_type getCur()=0
Return the current position in the reader.
virtual pos_type getEnd()
Return the ending position in the reader.
virtual pos_type getBeg()
Return the beginning position in the reader.