Lines Matching refs:wrappingBuffer

82 void FifoBuffer::fillWrappingBuffer(WrappingBuffer *wrappingBuffer,  in fillWrappingBuffer()  argument
85 wrappingBuffer->data[1] = nullptr; in fillWrappingBuffer()
86 wrappingBuffer->numFrames[1] = 0; in fillWrappingBuffer()
92 wrappingBuffer->data[0] = source; in fillWrappingBuffer()
93 wrappingBuffer->numFrames[0] = mFrameCapacity - startIndex; in fillWrappingBuffer()
94 wrappingBuffer->data[1] = &mStorage[0]; in fillWrappingBuffer()
95 wrappingBuffer->numFrames[1] = mFrameCapacity - startIndex; in fillWrappingBuffer()
98 wrappingBuffer->data[0] = source; in fillWrappingBuffer()
99 wrappingBuffer->numFrames[0] = framesAvailable; in fillWrappingBuffer()
102 wrappingBuffer->data[0] = nullptr; in fillWrappingBuffer()
103 wrappingBuffer->numFrames[0] = 0; in fillWrappingBuffer()
108 void FifoBuffer::getFullDataAvailable(WrappingBuffer *wrappingBuffer) { in getFullDataAvailable() argument
111 fillWrappingBuffer(wrappingBuffer, framesAvailable, startIndex); in getFullDataAvailable()
114 void FifoBuffer::getEmptyRoomAvailable(WrappingBuffer *wrappingBuffer) { in getEmptyRoomAvailable() argument
117 fillWrappingBuffer(wrappingBuffer, framesAvailable, startIndex); in getEmptyRoomAvailable()
121 WrappingBuffer wrappingBuffer; in read() local
125 getFullDataAvailable(&wrappingBuffer); in read()
131 fifo_frames_t framesAvailable = wrappingBuffer.numFrames[partIndex]; in read()
137 memcpy(destination, wrappingBuffer.data[partIndex], numBytes); in read()
152 WrappingBuffer wrappingBuffer; in write() local
156 getEmptyRoomAvailable(&wrappingBuffer); in write()
162 fifo_frames_t framesAvailable = wrappingBuffer.numFrames[partIndex]; in write()
168 memcpy(wrappingBuffer.data[partIndex], source, numBytes); in write()