Lines Matching refs:mCapacity
31 mCapacity = 0; in SkipCutBuffer()
50 mCapacity = cut + 4096; in SkipCutBuffer()
51 mCutBuffer = new (std::nothrow) char[mCapacity]; in SkipCutBuffer()
52 ALOGV("skipcutbuffer %zu %zu %d", skip, cut, mCapacity); in SkipCutBuffer()
139 if (sizeused < 0) sizeused += mCapacity; in write()
144 size_t available = mCapacity - sizeused - 32; in write()
146 int32_t newcapacity = mCapacity + (num - available); in write()
148 memcpy(newbuffer, mCutBuffer, mCapacity); in write()
150 mCapacity = newcapacity; in write()
155 size_t copyfirst = (mCapacity - mWriteHead); in write()
162 CHECK_LE(mWriteHead, mCapacity); in write()
163 if (mWriteHead == mCapacity) mWriteHead = 0; in write()
173 if (available < 0) available += mCapacity; in read()
183 size_t copyfirst = (mCapacity - mReadHead); in read()
190 CHECK_LE(mReadHead, mCapacity); in read()
191 if (mReadHead == mCapacity) mReadHead = 0; in read()
202 if (available < 0) available += mCapacity; in size()