Searched refs:bufferedReadSize (Results 1 – 2 of 2) sorted by relevance
140 size_t bufferedReadSize = m_readLeft < remaining ? m_readLeft : remaining; in commitBufferAndReadFully() local141 if (bufferedReadSize) { in commitBufferAndReadFully()142 memcpy(userReadBuf, m_buf + (m_read - m_readLeft), bufferedReadSize); in commitBufferAndReadFully()143 remaining -= bufferedReadSize; in commitBufferAndReadFully()144 m_readLeft -= bufferedReadSize; in commitBufferAndReadFully()179 bufferedReadSize = m_readLeft < remaining ? m_readLeft : remaining; in commitBufferAndReadFully()180 if (bufferedReadSize) { in commitBufferAndReadFully()183 bufferedReadSize); in commitBufferAndReadFully()184 remaining -= bufferedReadSize; in commitBufferAndReadFully()185 m_readLeft -= bufferedReadSize; in commitBufferAndReadFully()
386 size_t bufferedReadSize = in readFully() local389 if (bufferedReadSize) { in readFully()392 bufferedReadSize); in readFully()393 remaining -= bufferedReadSize; in readFully()394 m_readLeft -= bufferedReadSize; in readFully()419 bufferedReadSize = m_readLeft < remaining ? m_readLeft : remaining; in readFully()420 if (bufferedReadSize) { in readFully()423 bufferedReadSize); in readFully()424 remaining -= bufferedReadSize; in readFully()425 m_readLeft -= bufferedReadSize; in readFully()