Lines Matching refs:bufpos
488 size_t const bufpos = (nOffset % m_bufsiz); in readFileAt() local
516 if (bufpos >= m_buflen) in readFileAt()
522 size_t const bytes = std::min (m_buflen - bufpos, nBytesRequested); in readFileAt()
525 memcpy (&(buffer[*pBytesRead]), &(m_buffer[bufpos]), bytes); in readFileAt()
558 size_t const bufpos = (nOffset % m_bufsiz); in writeFileAt() local
588 size_t const bytes = std::min (m_bufsiz - bufpos, nBytesToWrite); in writeFileAt()
591 memcpy (&(m_buffer[bufpos]), &(buffer[*pBytesWritten]), bytes); in writeFileAt()
594 m_buflen = std::max(m_buflen, bufpos + bytes); in writeFileAt()
629 size_t bufpos = sal::static_int_cast< size_t >(nOffset - m_bufptr), curpos = bufpos, dstpos = 0; in readLineAt() local
630 int state = (bufpos >= m_buflen) ? LINE_STATE_LF : LINE_STATE_BEGIN; in readLineAt()
637 if (0 < (curpos - bufpos)) in readLineAt()
641 ppSequence, &dstpos, &(m_buffer[bufpos]), curpos - bufpos); in readLineAt()
644 *pBytesRead += curpos - bufpos, nOffset += curpos - bufpos; in readLineAt()
658 bufpos = sal::static_int_cast< size_t >(nOffset - m_bufptr), curpos = bufpos; in readLineAt()
659 if (bufpos >= m_buflen) in readLineAt()
698 ppSequence, &dstpos, &(m_buffer[bufpos]), curpos - bufpos - 1); in readLineAt()
701 *pBytesRead += curpos - bufpos, nOffset += curpos - bufpos; in readLineAt()
712 if (bufpos >= m_buflen) in readLineAt()