Searched refs:sizeNeeded (Results 1 – 2 of 2) sorted by relevance
365 size_t sizeNeeded = GraphicBuffer::getFlattenedSize(); in flatten() local366 if (size < sizeNeeded) return NO_MEMORY; in flatten()394 buffer = static_cast<void*>(static_cast<uint8_t*>(buffer) + sizeNeeded); in flatten()395 size -= sizeNeeded; in flatten()447 const size_t sizeNeeded = (flattenWordCount + numInts) * sizeof(int); in unflatten() local448 if (size < sizeNeeded) return NO_MEMORY; in unflatten()516 buffer = static_cast<void const*>(static_cast<uint8_t const*>(buffer) + sizeNeeded); in unflatten()517 size -= sizeNeeded; in unflatten()
607 int sizeNeeded = -1; in toBytes() local610 sizeNeeded = 3; in toBytes()611 if (bytes != null && bytes.length >= sizeNeeded) { in toBytes()628 sizeNeeded = 2; in toBytes()629 if (bytes != null && bytes.length >= sizeNeeded) { in toBytes()644 sizeNeeded = 9; in toBytes()646 if (bytes != null && bytes.length >= sizeNeeded) { in toBytes()663 return sizeNeeded; in toBytes()