Class ByteSliceStream
Hierarchy
- TransformStream<Uint8Array, Uint8Array>
- ByteSliceStream
Index
Constructors
Properties
Constructors
constructor
- new
Byte (start?, end?): ByteSliceStreamSlice Stream Constructs a new instance.
Parameters
- start: number = 0
The zero-indexed byte index to start reading from.
- end: number = Infinity
The zero-indexed byte index to stop reading at. Inclusive.
Returns ByteSliceStream
- start: number = 0
A transform stream that only transforms from the zero-indexed
startandendbytes (both inclusive).Example: Basic usage
Example: Get a range of bytes from a fetch response body