MCPcopy Create free account
hub / github.com/4paradigm/OpenMLDB / GetSize

Method GetSize

src/codec/schema_codec.h:220–226  ·  view source on GitHub ↗

calc the total size of schema

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected