API Reference > bentleyjs-core > Utils > ByteStream > constructor 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 core/bentley/src/ByteStream.ts Line 28 Last Updated: 12 June, 2024