Lines Matching refs:bufpos
453 size_t const bufpos = (nOffset % m_bufsiz); in readFileAt() local
482 if (bufpos >= m_buflen) in readFileAt()
488 size_t const bytes = std::min (m_buflen - bufpos, nBytesRequested); in readFileAt()
491 memcpy (&(buffer[*pBytesRead]), &(m_buffer[bufpos]), bytes); in readFileAt()
524 size_t const bufpos = (nOffset % m_bufsiz); in writeFileAt() local
555 size_t const bytes = std::min (m_bufsiz - bufpos, nBytesToWrite); in writeFileAt()
558 memcpy (&(m_buffer[bufpos]), &(buffer[*pBytesWritten]), bytes); in writeFileAt()
561 m_buflen = std::max(m_buflen, bufpos + bytes); in writeFileAt()
596 size_t bufpos = nOffset - m_bufptr, curpos = bufpos, dstpos = 0; in readLineAt() local
597 int state = (bufpos >= m_buflen) ? LINE_STATE_LF : LINE_STATE_BEGIN; in readLineAt()
604 if (0 < (curpos - bufpos)) in readLineAt()
608 ppSequence, &dstpos, &(m_buffer[bufpos]), curpos - bufpos); in readLineAt()
611 *pBytesRead += curpos - bufpos, nOffset += curpos - bufpos; in readLineAt()
625 bufpos = nOffset - m_bufptr, curpos = bufpos; in readLineAt()
626 if (bufpos >= m_buflen) in readLineAt()
665 ppSequence, &dstpos, &(m_buffer[bufpos]), curpos - bufpos - 1); in readLineAt()
668 *pBytesRead += curpos - bufpos, nOffset += curpos - bufpos; in readLineAt()
679 if (bufpos >= m_buflen) in readLineAt()