The input TypedArray
The desired output format ('uint8' or 'buffer')
A view on the same underlying buffer
Create a view of a TypedArray in the specified format ('uint8' or 'buffer')
Does not copy data, returns a view on the same underlying buffer
Viewing Uint16Array (or other with BYTES_PER_ELEMENT > 1) as bytes
is platform endianness-dependent.
The input TypedArray
The desired output format ('uint8' or 'buffer')
A view on the same underlying buffer
Create a view of a TypedArray in the specified format ('uint8' or 'buffer')
Does not copy data, returns a view on the same underlying buffer
Viewing Uint16Array (or other with BYTES_PER_ELEMENT > 1) as bytes
is platform endianness-dependent.
The input TypedArray
The desired output format ('uint8' or 'buffer')
A view on the same underlying buffer
Create a view of a TypedArray in the specified format (
'uint8'or'buffer')Does not copy data, returns a view on the same underlying buffer
Viewing
Uint16Array(or other withBYTES_PER_ELEMENT > 1) as bytes is platform endianness-dependent.