From 57e0a3a25ae30872416791002863d139e9db917a Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Tue, 10 May 2011 17:23:29 +0000 Subject: [PATCH] =?UTF-8?q?=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88?= =?UTF-8?q?=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88-appender?= =?UTF-8?q?:=20tiny=20modification.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dbms/include/DB/IO/WriteBuffer.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/dbms/include/DB/IO/WriteBuffer.h b/dbms/include/DB/IO/WriteBuffer.h index f259431275d..3ad444fd69e 100644 --- a/dbms/include/DB/IO/WriteBuffer.h +++ b/dbms/include/DB/IO/WriteBuffer.h @@ -75,6 +75,16 @@ public: bytes_written += n; } + + inline void write(char x) + { + nextIfAtEnd(); + *pos = x; + ++pos; + ++bytes_written; + } + + size_t count() { return bytes_written;