summaryrefslogtreecommitdiff
path: root/bufio.ts
diff options
context:
space:
mode:
Diffstat (limited to 'bufio.ts')
-rw-r--r--bufio.ts10
1 files changed, 10 insertions, 0 deletions
diff --git a/bufio.ts b/bufio.ts
index 8ff02b7e9..dccd3afc0 100644
--- a/bufio.ts
+++ b/bufio.ts
@@ -323,3 +323,13 @@ export class BufReader implements Reader {
return [this.buf.subarray(this.r, this.r + n), err];
}
}
+
+/** BufWriter implements buffering for an deno.Writer object.
+ * If an error occurs writing to a Writer, no more data will be
+ * accepted and all subsequent writes, and flush(), will return the error.
+ * After all data has been written, the client should call the
+ * flush() method to guarantee all data has been forwarded to
+ * the underlying deno.Writer.
+ */
+export class BufWriter implements Writer {
+}