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;