The input TypedArray
The desired output format ('uint8', 'buffer', or 'arraybuffer')
A copy of the underlying buffer
Create a copy of TypedArray underlying bytes in the specified format ('uint8', 'buffer', or 'arraybuffer')
This does not copy values, but copies the underlying bytes.
The result is similar to that of typedView(), but this function provides a copy, not a view of the same memory.
Copying underlying bytes from Uint16Array (or other with BYTES_PER_ELEMENT > 1)
is platform endianness-dependent.
Buffer might be pooled. Uint8Array return values are not pooled and match their underlying ArrayBuffer.
The input TypedArray
The desired output format ('uint8', 'buffer', or 'arraybuffer')
A copy of the underlying buffer
Create a copy of TypedArray underlying bytes in the specified format ('uint8', 'buffer', or 'arraybuffer')
This does not copy values, but copies the underlying bytes.
The result is similar to that of typedView(), but this function provides a copy, not a view of the same memory.
Copying underlying bytes from Uint16Array (or other with BYTES_PER_ELEMENT > 1)
is platform endianness-dependent.
Buffer might be pooled. Uint8Array return values are not pooled and match their underlying ArrayBuffer.
The input TypedArray
The desired output format ('uint8', 'buffer', or 'arraybuffer')
A copy of the underlying buffer
Create a copy of TypedArray underlying bytes in the specified format ('uint8', 'buffer', or 'arraybuffer')
This does not copy values, but copies the underlying bytes.
The result is similar to that of typedView(), but this function provides a copy, not a view of the same memory.
Copying underlying bytes from Uint16Array (or other with BYTES_PER_ELEMENT > 1)
is platform endianness-dependent.
Buffer might be pooled. Uint8Array return values are not pooled and match their underlying ArrayBuffer.
The input TypedArray
The desired output format ('uint8', 'buffer', or 'arraybuffer')
A copy of the underlying buffer
Create a copy of TypedArray underlying bytes in the specified format (
'uint8','buffer', or'arraybuffer')This does not copy values, but copies the underlying bytes. The result is similar to that of
typedView(), but this function provides a copy, not a view of the same memory.Copying underlying bytes from
Uint16Array(or other withBYTES_PER_ELEMENT > 1) is platform endianness-dependent.Buffer might be pooled. Uint8Array return values are not pooled and match their underlying ArrayBuffer.