calc the total size of schema
| 218 | private: |
| 219 | // calc the total size of schema |
| 220 | uint32_t GetSize(const std::vector<ColumnDesc>& columns) { |
| 221 | uint32_t byte_size = 0; |
| 222 | for (uint32_t i = 0; i < columns.size(); i++) { |
| 223 | byte_size += (HEADER_BYTE_SIZE + columns[i].name.size()); |
| 224 | } |
| 225 | return byte_size; |
| 226 | } |
| 227 | }; |
| 228 | |
| 229 | } // namespace codec |