Home
last modified time | relevance | path

Searched refs:bufSz (Results 1 – 4 of 4) sorted by relevance

/device/google/contexthub/lib/nanohub/
Dnanoapp.c27 void *reallocOrDie(void *buf, size_t bufSz) in reallocOrDie() argument
29 void *newBuf = realloc(buf, bufSz); in reallocOrDie()
31 fprintf(stderr, "Failed to allocate %zu bytes\n", bufSz); in reallocOrDie()
/device/google/contexthub/lib/include/nanohub/
Dnanoapp.h27 void *reallocOrDie(void *buf, size_t bufSz);
/device/google/contexthub/util/nanoapp_postprocess/
Dpostprocess_elf.c229 static int finalizeAndWrite(uint8_t *buf, uint32_t bufUsed, uint32_t bufSz, FILE *out, uint32_t lay… in finalizeAndWrite() argument
257 assertMem(bufUsed + hdrDiff, bufSz); in finalizeAndWrite()
303 uint32_t bufSz = bufUsed * 3 /2; in handleApp() local
306 buf = reallocOrDie(buf, bufSz); in handleApp()
504 assertMem(bufUsed, bufSz); in handleApp()
535 ret = finalizeAndWrite(buf, bufUsed, bufSz, out, layoutFlags, appId, chreApi); in handleApp()
Dpostprocess.c410 uint32_t bufSz = bufUsed * 3 /2; in handleApp() local
414 buf = reallocOrDie(buf, bufSz); in handleApp()
449 app.dataSizeAllocated = bufSz; in handleApp()