Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/oak/test_deps.ts>BufWriter#write

A middleware framework for handling HTTP with Deno 🐿️ 🦕
Very Popular
Go to Latest
method BufWriter.prototype.write
import { BufWriter } from "https://deno.land/x/oak@v12.2.0/test_deps.ts";

Writes the contents of data into the buffer. If the contents won't fully fit into the buffer, those bytes that are copied into the buffer will be flushed to the writer and the remaining bytes are then copied into the now empty buffer.

Parameters

data: Uint8Array

Returns

Promise<number>

the number of bytes written to the buffer.