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.
A 4-character FourCC string
The uint32 representation of the FourCC code
const result = fourCcToUint32('ftyp')assert.strictEqual(result, 0x66747970) Copy
const result = fourCcToUint32('ftyp')assert.strictEqual(result, 0x66747970)
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.