ClickHouse/src/DataStreams/formatBlock.cpp

16 lines
283 B
C++
Raw Normal View History

2021-07-29 14:39:42 +00:00
#include <Core/Block.h>
#include <DataStreams/IBlockOutputStream.h>
#include <DataStreams/formatBlock.h>
namespace DB
{
void formatBlock(BlockOutputStreamPtr & out, const Block & block)
{
out->writePrefix();
out->write(block);
out->writeSuffix();
out->flush();
}
}