class ByteSliceStream
A transform stream that only transforms from the zero-indexed start and
end bytes (both inclusive).
Examples
Example 1
Example 1
import { ByteSliceStream } from "@std/streams/byte_slice_stream"; const response = await fetch("https://example.com"); const rangedStream = response.body! .pipeThrough(new ByteSliceStream(3, 8));
Constructors
new ByteSliceStream(start?,end?: number)Constructs a new instance.