Lines Matching refs:bytesToSpend
287 sint32 bytesToSpend = 0;
312 if (bytesToSpend < 1) {
315 sleepTime = std::max((-bytesToSpend + 1) * 1000 / allowedDataRate + 2, // add 2 ms to allow for rounding inaccuracies
344 bytesToSpend += (sint32) (allowedDataRate / 1000.0 * timeSinceLastLoop);
346 if (bytesToSpend >= 1) {
369 while (spentBytes < bytesToSpend && (!m_ControlQueueFirst_list.empty() || !m_ControlQueue_list.empty())) {
381 SocketSentBytes socketSentBytes = socket->SendControlData(bytesToSpend-spentBytes, minFragSize);
413 for (uint32 slotCounter = 0; (slotCounter < slots * 2) && spentBytes < bytesToSpend; slotCounter++) {
419 : (bytesToSpend - spentBytes); // pass 2
436 bytesToSpend -= spentBytes;
439 if (bytesToSpend < - minBytesToSpend) {
440 bytesToSpend = - minBytesToSpend;
443 if (bytesToSpend > bandwidthSavedTolerance) {
444 bytesToSpend = bandwidthSavedTolerance;