Creates a new CTOC frame with the given element identifier.
The unique Latin1 element identifier for this table-of-contents entry.
Gets the list of child element IDs referenced by this CTOC entry.
An array of ByteVector element IDs.
Replaces the list of child element IDs.
The new array of child element IDs.
Gets the element identifier for this CTOC entry.
A ByteVector containing the Latin1-encoded element ID.
Sets the element identifier for this CTOC entry.
The new Latin1-encoded element ID.
Gets the list of frames embedded within this CTOC frame.
An array of Id3v2Frame sub-frames.
Gets the frame identifier from the header.
Gets the frame's header object.
Gets whether the child entries must be played in order.
true if playback order is enforced.
Sets whether the child entries must be played in order.
true to enforce sequential playback of child entries.
Gets whether this is the top-level (root) table-of-contents entry.
true if this is the root CTOC entry.
Sets whether this is the top-level table-of-contents entry.
true to mark this as the root CTOC entry.
Gets the payload size in bytes from the header.
Appends a child element ID to this CTOC entry.
The Latin1-encoded element ID to add.
Appends a sub-frame to the embedded frame list.
The Id3v2Frame to embed in this CTOC frame.
ProtectedparseParses the raw frame fields into structured CTOC data.
The raw field bytes of the frame.
The ID3v2 version used for parsing embedded sub-frames.
Removes the first child element ID equal to the given value.
The element ID to remove.
Removes a sub-frame from the embedded frame list.
The Id3v2Frame instance to remove.
Render the complete frame (header + fields) for the given version.
Optionalversion: numberProtectedrenderSerializes the CTOC frame fields into bytes.
The ID3v2 version used for rendering embedded sub-frames.
A ByteVector containing the encoded frame fields.
Returns the element ID as a Latin1 string.
The element identifier decoded as a Latin1 string.
Protected StaticfieldExtract the raw field data from a complete frame blob.
This handles unsynchronisation decoding, data-length indicators, and (stubbed) decompression.
StaticfromInternalCreate from raw frame data.
OptionalframeParser: (data: ByteVector, version: number) => Id3v2Frame | undefined
Table of contents frame (CTOC).
Structure: elementId(null-terminated Latin1) + flags(1) + entryCount(1) + childElementIds(null-terminated Latin1, repeated entryCount times) + embedded sub-frames.