MCPcopy Create free account
hub / github.com/bytedance/bolt / readOptionalBuffer

Function readOptionalBuffer

bolt/vector/VectorSaver.cpp:141–148  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

139}
140
141BufferPtr readOptionalBuffer(std::istream& in, memory::MemoryPool* pool) {
142 bool hasBuffer = read<bool>(in);
143 if (hasBuffer) {
144 return readBuffer(in, pool);
145 }
146
147 return nullptr;
148}
149
150template <TypeKind kind>
151VectorPtr createFlat(

Callers 5

readFlatVectorFunction · 0.85
readDictionaryVectorFunction · 0.85
readRowVectorFunction · 0.85
readArrayVectorFunction · 0.85
readMapVectorFunction · 0.85

Calls 1

readBufferFunction · 0.85

Tested by

no test coverage detected