Home
last modified time | relevance | path

Searched refs:firstSize (Results 1 – 1 of 1) sorted by relevance

/system/chre/platform/shared/
Dlog_buffer.cc160 size_t firstSize = mBufferMaxSize - mBufferDataTailIndex; in copyToBuffer() local
161 size_t secondSize = size - firstSize; in copyToBuffer()
162 memcpy(&mBufferData[mBufferDataTailIndex], sourceBytes, firstSize); in copyToBuffer()
163 memcpy(mBufferData, &sourceBytes[firstSize], secondSize); in copyToBuffer()
175 size_t firstSize = mBufferMaxSize - mBufferDataHeadIndex; in copyFromBuffer() local
176 size_t secondSize = size - firstSize; in copyFromBuffer()
177 memcpy(destinationBytes, &mBufferData[mBufferDataHeadIndex], firstSize); in copyFromBuffer()
178 memcpy(&destinationBytes[firstSize], mBufferData, secondSize); in copyFromBuffer()