Lines Matching refs:neededSize
78 bool ensureBufferCapacity(size_t neededSize);
173 bool JDescrambler::ensureBufferCapacity(size_t neededSize) {
174 if (mMem != NULL && mMem->size() >= neededSize) {
179 mMem == NULL ? 0 : mMem->size(), neededSize);
182 neededSize = (neededSize + (alignment - 1)) & ~(alignment - 1);
184 neededSize = (neededSize + 65535) & ~65535;
185 mDealer = new MemoryDealer(neededSize, "JDescrambler");
186 mMem = mDealer->allocate(neededSize);