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

Function GetContiguousVector

src/core/interface/vector_source.cc:37–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35}
36
37const void *GetContiguousVector(const ContiguousBatch &view, uint32_t id) {
38 if (id < view.first_id || id - view.first_id >= view.count) return nullptr;
39 return static_cast<const char *>(view.data) +
40 size_t(id - view.first_id) * view.stride;
41}
42
43class ContiguousVectorIterator final : public VectorIterator {
44 public:

Callers 2

get_vectorMethod · 0.85
get_vectorsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected