mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-12 01:12:12 +00:00
16 lines
283 B
C++
16 lines
283 B
C++
|
#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();
|
||
|
}
|
||
|
|
||
|
}
|