taglib-ts
    Preparing search index...

    Class ApeItem

    A single APE tag item.

    Binary layout: valueLength(4 LE) + flags(4 LE) + key(null-terminated ASCII) + value

    Index

    Constructors

    Properties

    binaryData: ByteVector = ...

    Raw binary payload (for Binary items).

    key: string = ""

    Case-sensitive ASCII key identifying this item.

    readOnly: boolean = false

    Whether this item is marked read-only in the tag.

    type: ApeItemType = ApeItemType.Text

    Data type of this item's value.

    values: string[] = []

    Decoded text values (for Text/Locator items).

    Methods

    • Returns a human-readable representation of this item's value.

      Returns string

    • Parse one APE item starting at offset in data. Returns the parsed item and how many bytes were consumed, or null on error.

      Parameters

      Returns { bytesUsed: number; item: ApeItem } | null