29 #include "io_helpers.h" 49 this->SetInteger(val);
74 return this->GetInteger();
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());
virtual pos_type getBeg()
Return the beginning position in the reader.
void RenderInteger(ID3_Writer &) const
uint32 GetInteger() const
virtual pos_type getCur()=0
Return the current position in the reader.
virtual pos_type getEnd()
Return the ending position in the reader.
uint32 Get() const
Returns the value of the integer field.
void Set(uint32)
Sets the value of the field to the specified integer.
bool ParseInteger(ID3_Reader &)