ID3v2 extended header implementation. More...
#include <id3v2extendedheader.h>
Public Member Functions | |
ExtendedHeader () | |
~ExtendedHeader () | |
ExtendedHeader (const ExtendedHeader &)=delete | |
ExtendedHeader & | operator= (const ExtendedHeader &)=delete |
unsigned int | size () const |
void | setData (const ByteVector &data) |
Protected Member Functions | |
void | parse (const ByteVector &data) |
ID3v2 extended header implementation.
This class implements ID3v2 extended headers. It attempts to follow, both semantically and programmatically, the structure specified in the ID3v2 standard. The API is based on the properties of ID3v2 extended headers specified there. If any of the terms used in this documentation are unclear please check the specification in the linked section. (id3v2.4.0-structure.txt, 3.2)
TagLib::ID3v2::ExtendedHeader::ExtendedHeader | ( | ) |
Constructs an empty ID3v2 extended header.
TagLib::ID3v2::ExtendedHeader::~ExtendedHeader | ( | ) |
Destroys the extended header.
|
delete |
|
delete |
|
protected |
Called by setData() to parse the extended header data. It makes this information available through the public API.
void TagLib::ID3v2::ExtendedHeader::setData | ( | const ByteVector & | data | ) |
Sets the data that will be used as the extended header. Since the length is not known before the extended header has been parsed, this should just be a pointer to the first byte of the extended header. It will determine the length internally and make that available through size().
unsigned int TagLib::ID3v2::ExtendedHeader::size | ( | ) | const |
Returns the size of the extended header. This is variable for the extended header.