Tag Parser 12.4.0
C++ library for reading and writing MP4 (iTunes), ID3, Vorbis, Opus, FLAC and Matroska tags
|
The Id3v2FrameMaker class helps making ID3v2 frames. More...
#include <id3v2frame.h>
Public Member Functions | |
void | make (CppUtilities::BinaryWriter &writer) |
Saves the frame (specified when constructing the object) using the specified writer. | |
const Id3v2Frame & | field () const |
Returns the associated frame. | |
const std::unique_ptr< char[]> & | data () const |
Returns the frame data. | |
std::uint32_t | dataSize () const |
Returns the size of the array returned by data(). | |
std::uint32_t | requiredSize () const |
Returns number of bytes which will be written when making the frame. | |
Friends | |
class | Id3v2Frame |
The Id3v2FrameMaker class helps making ID3v2 frames.
It allows to calculate the required size.
|
inline |
Returns the frame data.
Definition at line 56 of file id3v2frame.h.
|
inline |
Returns the size of the array returned by data().
Definition at line 64 of file id3v2frame.h.
|
inline |
Returns the associated frame.
Definition at line 48 of file id3v2frame.h.
void TagParser::Id3v2FrameMaker::make | ( | CppUtilities::BinaryWriter & | writer | ) |
Saves the frame (specified when constructing the object) using the specified writer.
Throws | std::ios_base::failure when an IO error occurs. |
Throws | Assumes the data is already validated and thus does NOT throw TagParser::Failure or a derived exception. |
Definition at line 834 of file id3v2frame.cpp.
|
inline |
Returns number of bytes which will be written when making the frame.
Definition at line 72 of file id3v2frame.h.
|
friend |
Definition at line 23 of file id3v2frame.h.