fromArrayBuffer MethodStatic

Construct a new ByteStream with the read position set to the beginning.

fromArrayBuffer(buffer: ArrayBuffer | SharedArrayBuffer, subView?: { byteLength: number, byteOffset: number }): ByteStream

Parameter Type Description
buffer ArrayBuffer | SharedArrayBuffer The underlying buffer from which data is to be extracted.
subView { byteLength: number, byteOffset: number } If defined, specifies the subset of the underlying buffer's data to use.

Returns - ByteStream

Defined in

Last Updated: 21 November, 2024