Searched refs:bufSz (Results 1 – 4 of 4) sorted by relevance
/device/google/contexthub/lib/nanohub/ |
D | nanoapp.c | 27 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/ |
D | nanoapp.h | 27 void *reallocOrDie(void *buf, size_t bufSz);
|
/device/google/contexthub/util/nanoapp_postprocess/ |
D | postprocess_elf.c | 229 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()
|
D | postprocess.c | 410 uint32_t bufSz = bufUsed * 3 /2; in handleApp() local 414 buf = reallocOrDie(buf, bufSz); in handleApp() 449 app.dataSizeAllocated = bufSz; in handleApp()
|