Skip to main content
Module

x/stream_slicing/partial_reader.ts>PartialReader#streamAmount

Deno and Node.js library for working with web standard streams
Latest
method PartialReader.prototype.streamAmount
import { PartialReader } from "https://deno.land/x/stream_slicing@v1.1.0/partial_reader.ts";

Returns a ReadableStream that the underlying reader is redirected to for the next size bytes. If you want to assert that the returned stream outputs size bytes without ending early, then use .pipeThrough(new ExactBytesTransformStream(size)) on the result.

Parameters

size: number