Searched refs:sizeNeeded (Results 1 – 2 of 2) sorted by relevance
267 size_t sizeNeeded = GraphicBuffer::getFlattenedSize(); in flatten() local268 if (size < sizeNeeded) return NO_MEMORY; in flatten()293 buffer = reinterpret_cast<void*>(static_cast<int*>(buffer) + sizeNeeded); in flatten()294 size -= sizeNeeded; in flatten()313 const size_t sizeNeeded = (10 + numInts) * sizeof(int); in unflatten() local314 if (size < sizeNeeded) return NO_MEMORY; in unflatten()355 buffer = reinterpret_cast<void const*>(static_cast<int const*>(buffer) + sizeNeeded); in unflatten()356 size -= sizeNeeded; in unflatten()
485 size_t sizeNeeded = inBuffer->range_length(); in onFillThisBuffer() local489 sizeNeeded += sizeof(int32_t); in onFillThisBuffer()492 if (sizeNeeded > sizeLeft) { in onFillThisBuffer()495 sizeNeeded); in onFillThisBuffer()530 0, outBuffer->size() + sizeNeeded); in onFillThisBuffer()532 sizeLeft -= sizeNeeded; in onFillThisBuffer()