Lines Matching refs:bufpos
455 size_t const bufpos = (nOffset % m_bufsiz); in readFileAt() local
484 if (bufpos >= m_buflen) in readFileAt()
490 size_t const bytes = std::min (m_buflen - bufpos, nBytesRequested); in readFileAt()
493 memcpy (&(buffer[*pBytesRead]), &(m_buffer[bufpos]), bytes); in readFileAt()
526 size_t const bufpos = (nOffset % m_bufsiz); in writeFileAt() local
557 size_t const bytes = std::min (m_bufsiz - bufpos, nBytesToWrite); in writeFileAt()
560 memcpy (&(m_buffer[bufpos]), &(buffer[*pBytesWritten]), bytes); in writeFileAt()
563 m_buflen = std::max(m_buflen, bufpos + bytes); in writeFileAt()
598 size_t bufpos = nOffset - m_bufptr, curpos = bufpos, dstpos = 0; in readLineAt() local
599 int state = (bufpos >= m_buflen) ? LINE_STATE_LF : LINE_STATE_BEGIN; in readLineAt()
606 if (0 < (curpos - bufpos)) in readLineAt()
610 ppSequence, &dstpos, &(m_buffer[bufpos]), curpos - bufpos); in readLineAt()
613 *pBytesRead += curpos - bufpos, nOffset += curpos - bufpos; in readLineAt()
627 bufpos = nOffset - m_bufptr, curpos = bufpos; in readLineAt()
628 if (bufpos >= m_buflen) in readLineAt()
667 ppSequence, &dstpos, &(m_buffer[bufpos]), curpos - bufpos - 1); in readLineAt()
670 *pBytesRead += curpos - bufpos, nOffset += curpos - bufpos; in readLineAt()
681 if (bufpos >= m_buflen) in readLineAt()