Lines Matching refs:bufpos
388 SIZE_T const bufpos = (nOffset % m_bufsiz); in readFileAt() local
417 if (bufpos >= m_buflen) in readFileAt()
423 SIZE_T const bytes = std::min(m_buflen - bufpos, (SIZE_T)nBytesRequested); in readFileAt()
424 memcpy (&(buffer[*pBytesRead]), &(m_buffer[bufpos]), bytes); in readFileAt()
462 SIZE_T const bufpos = (nOffset % m_bufsiz); in writeFileAt() local
493 SIZE_T const bytes = std::min(m_bufsiz - bufpos, (SIZE_T)nBytesToWrite); in writeFileAt()
494 memcpy (&(m_buffer[bufpos]), &(buffer[*pBytesWritten]), bytes); in writeFileAt()
497 m_buflen = std::max(m_buflen, bufpos + bytes); in writeFileAt()
532 SIZE_T bufpos = sal::static_int_cast< SIZE_T >(nOffset - m_bufptr), curpos = bufpos, dstpos = 0; in readLineAt() local
533 int state = (bufpos >= m_buflen) ? LINE_STATE_LF : LINE_STATE_BEGIN; in readLineAt()
540 if (0 < (curpos - bufpos)) in readLineAt()
544 ppSequence, &dstpos, &(m_buffer[bufpos]), curpos - bufpos); in readLineAt()
547 *pBytesRead += curpos - bufpos, nOffset += curpos - bufpos; in readLineAt()
561 bufpos = sal::static_int_cast< SIZE_T >(nOffset - m_bufptr), curpos = bufpos; in readLineAt()
562 if (bufpos >= m_buflen) in readLineAt()
601 ppSequence, &dstpos, &(m_buffer[bufpos]), curpos - bufpos - 1); in readLineAt()
604 *pBytesRead += curpos - bufpos, nOffset += curpos - bufpos; in readLineAt()
615 if (bufpos >= m_buflen) in readLineAt()