MCPcopy Create free account
hub / github.com/asg017/sqlite-vss / vector_length

Function vector_length

src/sqlite-vector.cpp:240–249  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

238}
239
240static void vector_length(sqlite3_context *context,
241 int argc,
242 sqlite3_value **argv) {
243
244 auto pVec = (VectorFloat *)sqlite3_value_pointer(argv[0], VECTOR_FLOAT_POINTER_NAME);
245 if (pVec == nullptr)
246 return;
247
248 sqlite3_result_int64(context, pVec->size);
249}
250
251#pragma endregion
252

Callers 1

test_vector_lengthMethod · 0.85

Calls

no outgoing calls

Tested by 1

test_vector_lengthMethod · 0.68