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

Method load

tests/ailego/buffer/vector_page_table_test.cc:115–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

113 using Value = std::shared_ptr<std::vector<char>>;
114
115 bool load(size_t bytes, SizedCachePayload &payload, size_t &size) {
116 payload.data = std::make_shared<std::vector<char>>(bytes);
117 size = bytes;
118 return true;
119 }
120
121 Value value(const SizedCachePayload &payload) const {
122 return payload.data;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected