Lines Matching refs:numBytes
164 void *allocate(size_t numBytes);
169 ANGLE_INLINE uint8_t *fastAllocate(size_t numBytes) in fastAllocate() argument
172 return reinterpret_cast<uint8_t *>(allocate(numBytes)); in fastAllocate()
176 ASSERT(numBytes <= (mPageSize - mHeaderSkip)); in fastAllocate()
180 if (numBytes <= mPageSize - mCurrentPageOffset) in fastAllocate()
186 mCurrentPageOffset += numBytes; in fastAllocate()
189 return reinterpret_cast<uint8_t *>(allocateNewPage(numBytes, numBytes)); in fastAllocate()
246 void *allocateNewPage(size_t numBytes, size_t allocationSize);
248 void *initializeAllocation(Header *block, unsigned char *memory, size_t numBytes) in initializeAllocation() argument
251 new (memory) Allocation(numBytes + mAlignment, memory, block->lastAllocation); in initializeAllocation()
256 size_t alignedBytes = numBytes + mAlignment; in initializeAllocation()
257 return std::align(mAlignment, numBytes, unalignedPtr, alignedBytes); in initializeAllocation()