Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Go to Latest
class ByteSliceStream
extends TransformStream<Uint8Array, Uint8Array>
import { ByteSliceStream } from "";

A transform stream that only transforms from the zero-indexed start and end bytes (both inclusive).


Example 1

import { ByteSliceStream } from "";
const response = await fetch("");
const rangedStream = response.body!
  .pipeThrough(new ByteSliceStream(3, 8));


ByteSliceStream(start?, end?)