ClickHouse/dbms/src/IO/tests/write_int.cpp

24 lines
382 B
C++
Raw Normal View History

#include <IO/WriteHelpers.h>
#include <IO/WriteBufferFromFileDescriptor.h>
using namespace DB;
2019-02-25 20:24:54 +00:00
void NO_INLINE write(WriteBuffer & out, size_t size)
{
for (size_t i = 0; i < size; ++i)
{
writeIntText(i, out);
2019-02-25 20:21:05 +00:00
writeChar(' ', out);
}
}
int main(int, char **)
{
WriteBufferFromFileDescriptor out(STDOUT_FILENO);
2019-02-25 20:24:54 +00:00
write(out, 12);
return 0;
}