From c39c259078d383df0300fb93f084bb19a30635ae Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 4 Sep 2016 12:05:11 +0200 Subject: [PATCH] fs/io/BufferedOutputStream: add Write(char) --- src/fs/io/BufferedOutputStream.hxx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/fs/io/BufferedOutputStream.hxx b/src/fs/io/BufferedOutputStream.hxx index d244f7f6d..1a0ae021d 100644 --- a/src/fs/io/BufferedOutputStream.hxx +++ b/src/fs/io/BufferedOutputStream.hxx @@ -42,6 +42,11 @@ public: :os(_os), buffer(32768) {} void Write(const void *data, size_t size); + + void Write(const char &ch) { + Write(&ch, sizeof(ch)); + } + void Write(const char *p); gcc_printf(2,3)