Lines Matching refs:bytesToWrite
109 size_t bytesToWrite = numShorts * sizeof(uint16_t); in writeBurstBufferShorts() local
110 if ((mByteCursor + bytesToWrite) > mBurstBufferSizeBytes) { in writeBurstBufferShorts()
115 memcpy(&mBurstBuffer[mByteCursor >> 1], buffer, bytesToWrite); in writeBurstBufferShorts()
116 mByteCursor += bytesToWrite; in writeBurstBufferShorts()
129 size_t bytesToWrite = numBytes; in writeBurstBufferBytes() local
130 if ((mByteCursor + bytesToWrite) > mBurstBufferSizeBytes) { in writeBurstBufferBytes()
136 for (size_t i = 0; i < bytesToWrite; i++) { in writeBurstBufferBytes()
252 size_t bytesToWrite = bytesLeft; in write() local
254 if (bytesToWrite > mPayloadBytesPending) { in write()
255 bytesToWrite = mPayloadBytesPending; in write()
257 writeBurstBufferBytes(data, bytesToWrite); in write()
259 data += bytesToWrite; in write()
260 bytesLeft -= bytesToWrite; in write()
261 mPayloadBytesPending -= bytesToWrite; in write()