Lines Matching refs:bytes
24 void *MemoryManager::nanoappAlloc(Nanoapp *app, uint32_t bytes) { in nanoappAlloc() argument
26 if (bytes > 0) { in nanoappAlloc()
31 } else if ((bytes > kMaxAllocationBytes) || in nanoappAlloc()
32 ((mTotalAllocatedBytes + bytes) > kMaxAllocationBytes)) { in nanoappAlloc()
38 doAlloc(app, sizeof(HeapBlockHeader) + bytes)); in nanoappAlloc()
41 app->setTotalAllocatedBytes(app->getTotalAllocatedBytes() + bytes); in nanoappAlloc()
42 mTotalAllocatedBytes += bytes; in nanoappAlloc()
48 header->data.bytes = bytes; in nanoappAlloc()
71 if (nanoAppTotalAllocatedBytes >= header->data.bytes) { in nanoappFree()
73 header->data.bytes); in nanoappFree()
78 if (mTotalAllocatedBytes >= header->data.bytes) { in nanoappFree()
79 mTotalAllocatedBytes -= header->data.bytes; in nanoappFree()