MCPcopy Create free account
hub / github.com/AprilRobotics/apriltag / zarray_get

Function zarray_get

common/zarray.h:195–203  ·  view source on GitHub ↗

* Retrieves the element from the supplied array located at the zero-based * index of 'idx' and copies its value into the variable pointed to by the pointer * 'p'. */

Source from the content-addressed store, hash-verified

193 * 'p'.
194 */
195static inline void zarray_get(const zarray_t *za, int idx, void *p)
196{
197 assert(za != NULL);
198 assert(p != NULL);
199 assert(idx >= 0);
200 assert(idx < za->size);
201
202 memcpy(p, &za->data[idx*za->el_sz], za->el_sz);
203}
204
205/**
206 * Similar to zarray_get(), but returns a "live" pointer to the internal

Callers 15

apriltag_detectFunction · 0.85
fit_quadsFunction · 0.85
apriltag_quad_threshFunction · 0.85
quad_decode_taskFunction · 0.85
apriltag_detector_detectFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
getopt_parseFunction · 0.85
getopt_get_usageFunction · 0.85

Calls

no outgoing calls

Tested by 1

mainFunction · 0.68