CML
    Preparing search index...

    ISO BMFF data view. Similar to DataView, but with additional methods for reading ISO BMFF data. It implements the iterator protocol, so it can be used in a for...of loop.

    Index

    Constructors

    Accessors

    Methods

    • Reads a byte array from the data view.

      Parameters

      • size: number

        The size of the data in bytes.

      Returns Uint8Array<ArrayBuffer>

      The data.

    • Reads a number of entries from the data view.

      Type Parameters

      • T

      Parameters

      • length: number

        The number of entries to read.

      • map: () => T

        The function to map the entries.

      Returns T[]

      The entries.

    • Reads a signed integer from the data view.

      Parameters

      • size: number

        The size of the integer in bytes.

      Returns number

      The signed integer.

    • Reads a string from the data view.

      Parameters

      • size: number

        The size of the string in bytes.

      Returns string

      The string.

    • Reads a template from the data view.

      Parameters

      • size: number

        The size of the template in bytes.

      Returns number

      The template.

    • Reads a unsigned integer from the data view.

      Parameters

      • size: number

        The size of the integer in bytes.

      Returns number

      The unsigned integer.

    • Reads a UTF-8 string from the data view.

      Parameters

      • Optionalsize: number

        The size of the string in bytes.

      Returns string

      The UTF-8 string.