MCPcopy Create free account
hub / github.com/alibaba/zvec / get_vector_ptr

Method get_vector_ptr

src/core/algorithm/flat/flat_streamer_entity.cc:970–976  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

968}
969
970const void *FlatContiguousStreamerEntity::get_vector_ptr(
971 const ContiguousStorage &storage, size_t position) const {
972 if (!storage.vector_memory || position >= storage.vector_count) {
973 return nullptr;
974 }
975 return storage.vector_memory.get() + position * storage.vector_stride;
976}
977
978const void *FlatStreamerEntity::get_vector_by_key(uint64_t key) const {
979 if (use_external_vector_) return nullptr;

Callers 2

TEST_FFunction · 0.45
create_graphMethod · 0.45

Calls 1

getMethod · 0.45

Tested by 2

TEST_FFunction · 0.36
create_graphMethod · 0.36