import { streams } from "https://deno.land/x/msgpack_rpc@v4.0.0/deps.ts";
const { ByteSliceStream } = streams;
A transform stream that only transforms from the zero-indexed start
and end
bytes (both inclusive).
Examples
Example 1
Example 1
import { ByteSliceStream } from "https://deno.land/std@0.224.0/streams/buffer.ts";
const response = await fetch("https://example.com");
const rangedStream = response.body!
.pipeThrough(new ByteSliceStream(3, 8));