Lines Matching refs:mByteCursor
43 , mByteCursor(0) in SPDIFEncoder()
109 || (mByteCursor > (mBurstBufferSizeBytes - numBytes)); // (max - n) won't overflow in wouldOverflowBuffer()
117 mByteCursor = (mByteCursor + 1) & ~1; // round up to even byte in writeBurstBufferShorts()
124 memcpy(&mBurstBuffer[mByteCursor >> 1], buffer, bytesToWrite); in writeBurstBufferShorts()
125 mByteCursor += bytesToWrite; in writeBurstBufferShorts()
149 uint16_t pad = mBurstBuffer[mByteCursor >> 1]; in writeBurstBufferBytes()
151 if (mByteCursor & 1 ) { in writeBurstBufferBytes()
153 mBurstBuffer[mByteCursor >> 1] = pad; in writeBurstBufferBytes()
158 mByteCursor++; in writeBurstBufferBytes()
161 if (mByteCursor & 1 ){ in writeBurstBufferBytes()
162 mBurstBuffer[mByteCursor >> 1] = pad; in writeBurstBufferBytes()
171 if (mByteCursor > burstSize) { in sendZeroPad()
178 mByteCursor = burstSize; in sendZeroPad()
196 if (mByteCursor > preambleSize) { in flushBurstBuffer()
198 uint16_t numBytes = (mByteCursor - preambleSize); in flushBurstBuffer()
202 writeOutput(mBurstBuffer, mByteCursor); in flushBurstBuffer()
212 mByteCursor = 0; in clearBurstBuffer()
259 if (mByteCursor == 0) { in write()