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

x/clippy/deps.ts>io.BufWriterSync#writeSync

cross-platform Deno module for writing and reading clipboard.
Go to Latest
method io.BufWriterSync.prototype.writeSync
import { io } from "https://deno.land/x/clippy@v0.2.2/deps.ts";
const { BufWriterSync } = io;

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.