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

Function readArrayVector

bolt/vector/VectorSaver.cpp:488–503  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

486}
487
488VectorPtr readArrayVector(
489 const TypePtr& type,
490 vector_size_t size,
491 std::istream& in,
492 memory::MemoryPool* pool) {
493 // Nulls buffer.
494 BufferPtr nulls = readOptionalBuffer(in, pool);
495
496 BufferPtr offsets = readBuffer(in, pool);
497 BufferPtr sizes = readBuffer(in, pool);
498
499 auto elements = restoreVector(in, pool);
500
501 return std::make_shared<ArrayVector>(
502 pool, type, nulls, size, offsets, sizes, elements);
503}
504
505void writeMapVector(const BaseVector& vector, std::ostream& out) {
506 // Nulls buffer.

Callers 1

restoreVectorFunction · 0.70

Calls 3

readOptionalBufferFunction · 0.85
readBufferFunction · 0.85
restoreVectorFunction · 0.85

Tested by

no test coverage detected