32#include "io_helpers.h"
82 io::writeUInt28(writer, 6);
83 io::writeBENumber(writer, 1, 1);
84 io::writeBENumber(writer, 0, 1);
88 io::writeBENumber(writer, 6,
sizeof(uint32));
89 for (
size_t i = 0; i < 6; ++i)
103 io::ExitTrigger et(reader);
106 ID3D_NOTICE(
"ID3_TagHeader::Parse(): not an id3v2 header" );
130 et.setExitPos(reader.
getCur());
146 uint16 tmpval = io::readBENumber(reader, 2);
170 io::readUInt28(reader);
171 const int extflagbytes = reader.
readChar();
173 for (i = 0; i < extflagbytes; ++i)
185 const int extheaderflagdatasize = reader.
readChar();
186 extrabytes += extheaderflagdatasize;
196 const int extheaderflagdatasize = reader.
readChar();
197 extrabytes += extheaderflagdatasize;
207 const int extheaderflagdatasize = reader.
readChar();
208 extrabytes += extheaderflagdatasize;
virtual pos_type setCur(pos_type pos)=0
Set the value of the current position for reading.
virtual pos_type getCur()=0
Return the current position in the reader.
virtual size_type readChars(char_type buf[], size_type len)=0
Read up to len characters into buf and advance the internal position accordingly.
virtual int_type readChar()
Read a single character and advance the internal position.
static size_t IsV2Tag(const uchar *)
Analyses a buffer to determine if we have a valid ID3v2 tag header.
virtual size_type writeChars(const char_type buf[], size_type len)=0
Write up to len characters into buf and advance the internal position accordingly.
virtual int_type writeChar(char_type ch)
Write a single character and advance the internal position.
static const int_type END_OF_WRITER
uchar ID3_V2SpecToRev(ID3_V2Spec spec)
ID3_V2Spec ID3_VerRevToV2Spec(uchar ver, uchar rev)
uchar ID3_V2SpecToVer(ID3_V2Spec spec)