Construct an Id3v2FrameHeader.
data and version are provided, the header is parsed from data.data is provided, it is used directly as the frame ID.Optionaldata: ByteVectorRaw header bytes to parse, or a frame ID ByteVector.
Optionalversion: numberID3v2 major version (2, 3, or 4).
Gets whether the frame data is zlib-compressed.
Sets the compression flag.
true if the frame data is compressed.
Gets whether a 4-byte data-length indicator precedes the payload.
Sets the data-length-indicator flag.
true if a data-length indicator is present.
Gets whether the frame data is encrypted.
Sets the encryption flag.
true if the frame data is encrypted.
Gets whether the frame should be discarded when the file is altered.
Sets the file-alter-preservation flag.
true if the frame should be discarded on file alteration.
Gets the frame identifier as a ByteVector.
Gets the payload size of the frame in bytes.
Sets the payload size of the frame in bytes.
The new payload size.
Gets whether the frame belongs to a group identified by a group byte.
Sets the group identity flag.
true if a group-identity byte is present in the frame.
Gets whether the frame contents are read-only.
Gets whether the frame should be discarded when the tag is altered.
Sets the tag-alter-preservation flag.
true if the frame should be discarded on tag alteration.
Gets whether per-frame unsynchronisation has been applied (v2.4 only).
Sets the unsynchronisation flag.
true if the frame payload has been unsynchronised.
Gets the ID3v2 major version associated with this header.
Sets the ID3v2 major version associated with this header.
The major version number (2, 3, or 4).
Render the header to its binary representation.
For v2.2 this produces 6 bytes; for v2.3/v2.4 it produces 10 bytes (frame ID + size + two flag bytes).
The serialised header as a ByteVector.
StaticsizeHeader size: 10 bytes for v2.3/v2.4, 6 bytes for v2.2.
ID3v2 frame header.