| 27 | } |
| 28 | |
| 29 | static void serializeHeader(const Block & header, WriteBuffer & out) |
| 30 | { |
| 31 | /// Write only names and types. |
| 32 | /// Constants should be filled by step. |
| 33 | |
| 34 | writeVarUInt(header.columns(), out); |
| 35 | for (const auto & column : header) |
| 36 | { |
| 37 | writeStringBinary(column.name, out); |
| 38 | encodeDataType(column.type, out); |
| 39 | } |
| 40 | } |
| 41 | |
| 42 | static Block deserializeHeader(ReadBuffer & in) |
| 43 | { |