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

x/proc/legacy/deps.ts>BufWriterSync#writeSync

A high-level way to run child processes that is easy, flexible, powerful, and prevents resource leaks.
Go to Latest
method BufWriterSync.prototype.writeSync
import { BufWriterSync } from "https://deno.land/x/proc@0.20.1/legacy/deps.ts";

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

Parameters

data: Uint8Array

Returns

number

the number of bytes written to the buffer.