Searched refs:bytesToWrite (Results 1 – 2 of 2) sorted by relevance
66 private final void ensureFit(int bytesToWrite) { in ensureFit() argument67 if (mOffset + bytesToWrite > mBuffer.length) { in ensureFit()69 mBuffer = new byte[Math.max(mOffset + bytesToWrite, mBuffer.length * 2)]; in ensureFit()
544 int bytesToWrite = length; in write() local545 while (bytesToWrite > 0) { in write()546 int tmpLength = (bytesToWrite > mMaxTxPacketSize) in write()548 : bytesToWrite; in write()551 bytesToWrite -= tmpLength; in write()