Home
last modified time | relevance | path

Searched refs:grow (Results 1 – 2 of 2) sorted by relevance

/device/google/contexthub/lib/nanohub/
Dnanoapp.c72 uint32_t len = 0, grow = 16384, total = 0; in loadFile() local
81 len += grow; dst = reallocOrDie(dst, len); in loadFile()
83 block = fread(dst + total, 1, grow, f); in loadFile()
85 } while (block == grow); in loadFile()
/device/google/contexthub/util/nanoapp_sign/
Dnanoapp_sign.c328 uint32_t grow = sizeof(*secHdr); in handleSign() local
331 buf = reallocOrDie(buf, bufUsed + grow); in handleSign()
338 memmove((uint8_t*)&image[1] + grow, &image[1], bufUsed - sizeof(*image)); in handleSign()
340 bufUsed += grow; in handleSign()