x/oak/test_deps.ts

A middleware framework for handling HTTP with Deno 🐿️ 🦕
Very Popular
Go to Latest
method Buffer.prototype.read
import { Buffer } from "https://dotland-vbqsvsrpfncg.deno-staging.dev/x/oak@v11.1.0/test_deps.ts?p=prototype.read&s=Buffer";

Reads the next p.length bytes from the buffer or until the buffer is drained. Resolves to the number of bytes read. If the buffer has no data to return, resolves to EOF (null).

NOTE: This methods reads bytes synchronously; it's provided for compatibility with Reader interfaces.

Parameters

p: Uint8Array[src]

Returns

Promise<number | null>[src]