constructor Method

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

ByteStream(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: 12 June, 2024