taglib-ts
    Preparing search index...

    An in-memory IOStream backed by a ByteVector. Useful for reading and writing tag metadata without touching the filesystem, or for constructing binary payloads in memory.

    All operations are synchronous under the hood; the async signatures exist solely to satisfy the IOStream contract.

    Hierarchy (View Summary)

    Index

    Constructors

    Methods

    • Inserts data at byte offset start, optionally replacing replace bytes of existing content.

      Parameters

      • data: ByteVector

        The bytes to insert.

      • start: number

        Byte offset at which to begin the insertion.

      • replace: number = 0

        Number of existing bytes to overwrite. Defaults to 0.

      Returns Promise<void>

    • Removes length bytes beginning at byte offset start.

      Parameters

      • start: number

        Byte offset of the first byte to remove.

      • length: number

        Number of bytes to remove.

      Returns Promise<void>

    • Truncates or zero-extends the stream to exactly length bytes. If the current position exceeds the new length, it is clamped.

      Parameters

      • length: number

        The desired stream length in bytes.

      Returns Promise<void>