Lines Matching refs:written
54 size_t written = mMaxFrames - rear; in write() local
55 if (CC_LIKELY(written > count)) { in write()
56 written = count; in write()
58 memcpy((char *) mBuffer + (rear * mFrameSize), buffer, written * mFrameSize); in write()
59 if (CC_UNLIKELY(rear + written == mMaxFrames)) { in write()
60 if (CC_UNLIKELY((count -= written) > rear)) { in write()
64 memcpy(mBuffer, (char *) buffer + (written * mFrameSize), count * mFrameSize); in write()
65 written += count; in write()
68 android_atomic_release_store(written + mRear, &mRear); in write()
69 mFramesWritten += written; in write()
70 return written; in write()