Searched refs:sizeNeeded (Results 1 – 2 of 2) sorted by relevance
292 size_t sizeNeeded = GraphicBuffer::getFlattenedSize(); in flatten() local293 if (size < sizeNeeded) return NO_MEMORY; in flatten()320 buffer = static_cast<void*>(static_cast<uint8_t*>(buffer) + sizeNeeded); in flatten()321 size -= sizeNeeded; in flatten()353 const size_t sizeNeeded = (11 + numInts) * sizeof(int); in unflatten() local354 if (size < sizeNeeded) return NO_MEMORY; in unflatten()404 buffer = static_cast<void const*>(static_cast<uint8_t const*>(buffer) + sizeNeeded); in unflatten()405 size -= sizeNeeded; in unflatten()
484 size_t sizeNeeded = inBuffer->range_length(); in onFillThisBuffer() local488 sizeNeeded += sizeof(int32_t); in onFillThisBuffer()491 if (sizeNeeded > sizeLeft) { in onFillThisBuffer()494 sizeNeeded); in onFillThisBuffer()529 0, outBuffer->size() + sizeNeeded); in onFillThisBuffer()531 sizeLeft -= sizeNeeded; in onFillThisBuffer()