Tag Parser 12.4.0
C++ library for reading and writing MP4 (iTunes), ID3, Vorbis, Opus, FLAC and Matroska tags
|
The FlacMetaDataBlockHeader class is a FLAC "METADATA_BLOCK_HEADER" parser and maker. More...
#include <flacmetadata.h>
Public Member Functions | |
constexpr | FlacMetaDataBlockHeader () |
Constructs a new FLAC "METADATA_BLOCK_HEADER". | |
void | parseHeader (std::string_view buffer) |
Parses the FLAC "METADATA_BLOCK_HEADER" which is read using the specified iterator. | |
void | makeHeader (std::ostream &outputStream) |
Writes the header to the specified outputStream. | |
constexpr std::uint8_t | isLast () const |
Returns whether this is the last metadata block before the audio blocks. | |
void | setLast (std::uint8_t last) |
Sets whether this is the last metadata block before the audio blocks. | |
constexpr std::uint8_t | type () const |
Returns the block type. | |
void | setType (FlacMetaDataBlockType type) |
Sets the block type. | |
constexpr std::uint32_t | dataSize () const |
Returns the length in bytes of the meta data (excluding the size of the header itself). | |
void | setDataSize (std::uint32_t dataSize) |
Sets the length in bytes of the meta data (excluding the size of the header itself). | |
The FlacMetaDataBlockHeader class is a FLAC "METADATA_BLOCK_HEADER" parser and maker.
|
constexpr |
Constructs a new FLAC "METADATA_BLOCK_HEADER".
Definition at line 51 of file flacmetadata.h.
|
constexpr |
Returns the length in bytes of the meta data (excluding the size of the header itself).
Definition at line 95 of file flacmetadata.h.
|
constexpr |
Returns whether this is the last metadata block before the audio blocks.
Definition at line 62 of file flacmetadata.h.
void TagParser::FlacMetaDataBlockHeader::makeHeader | ( | std::ostream & | outputStream | ) |
Writes the header to the specified outputStream.
Definition at line 40 of file flacmetadata.cpp.
void TagParser::FlacMetaDataBlockHeader::parseHeader | ( | std::string_view | buffer | ) |
Parses the FLAC "METADATA_BLOCK_HEADER" which is read using the specified iterator.
Definition at line 29 of file flacmetadata.cpp.
|
inline |
Sets the length in bytes of the meta data (excluding the size of the header itself).
Definition at line 104 of file flacmetadata.h.
|
inline |
Sets whether this is the last metadata block before the audio blocks.
Definition at line 70 of file flacmetadata.h.
|
inline |
Sets the block type.
Definition at line 87 of file flacmetadata.h.
|
constexpr |