Searched defs:bufSz (Results 1 - 3 of 3) sorted by relevance

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

Completed in 44 milliseconds