CML
    Preparing search index...

    Function fourCcToUint32

    • Converts a 4-character string (e.g., FourCC code) to a Uint32 number. Each character's code point is treated as a byte in big-endian order.

      Parameters

      • str: string

        A 4-character FourCC string

      Returns number

      The uint32 representation of the FourCC code

      const result = fourCcToUint32('ftyp')

      assert.strictEqual(result, 0x66747970)