MCPcopy Create free account
hub / github.com/arrayfire/arrayfire / af_read_array_key_check

Function af_read_array_key_check

src/api/c/stream.cpp:364–378  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

362}
363
364af_err af_read_array_key_check(int *index, const char *filename,
365 const char *key) {
366 try {
367 ARG_ASSERT(1, filename != NULL);
368 ARG_ASSERT(2, key != NULL);
369
370 AF_CHECK(af_init());
371
372 // Find index of key. Then call read by index
373 int id = checkVersionAndFindIndex(filename, key);
374 std::swap(*index, id);
375 }
376 CATCHALL;
377 return AF_SUCCESS;
378}

Callers 1

readArrayCheckFunction · 0.50

Calls 3

checkVersionAndFindIndexFunction · 0.85
swapFunction · 0.85
af_initFunction · 0.70

Tested by

no test coverage detected