Lines Matching refs:mByteCursor
43 , mByteCursor(0) in SPDIFEncoder()
108 mByteCursor = (mByteCursor + 1) & ~1; // round up to even byte in writeBurstBufferShorts()
110 if ((mByteCursor + bytesToWrite) > mBurstBufferSizeBytes) { in writeBurstBufferShorts()
115 memcpy(&mBurstBuffer[mByteCursor >> 1], buffer, bytesToWrite); in writeBurstBufferShorts()
116 mByteCursor += bytesToWrite; in writeBurstBufferShorts()
130 if ((mByteCursor + bytesToWrite) > mBurstBufferSizeBytes) { in writeBurstBufferBytes()
135 uint16_t pad = mBurstBuffer[mByteCursor >> 1]; in writeBurstBufferBytes()
137 if (mByteCursor & 1 ) { in writeBurstBufferBytes()
139 mBurstBuffer[mByteCursor >> 1] = pad; in writeBurstBufferBytes()
144 mByteCursor++; in writeBurstBufferBytes()
147 if (mByteCursor & 1 ){ in writeBurstBufferBytes()
148 mBurstBuffer[mByteCursor >> 1] = pad; in writeBurstBufferBytes()
157 if (mByteCursor > burstSize) { in sendZeroPad()
164 mByteCursor = burstSize; in sendZeroPad()
182 if (mByteCursor > preambleSize) { in flushBurstBuffer()
184 uint16_t numBytes = (mByteCursor - preambleSize); in flushBurstBuffer()
188 writeOutput(mBurstBuffer, mByteCursor); in flushBurstBuffer()
198 mByteCursor = 0; in clearBurstBuffer()
238 if (mByteCursor == 0) { in write()