import { BufWriter } from "https://deno.land/x/proc@0.20.13/legacy/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.