Lines Matching refs:nOffset
206 off_t nOffset,
212 off_t nOffset,
218 off_t nOffset,
224 off_t nOffset,
230 LONGLONG nOffset,
399 off_t nOffset, in readAt() argument
412 if (nOffset != m_offset) in readAt()
414 if (-1 == ::lseek (m_fd, nOffset, SEEK_SET)) in readAt()
416 m_offset = nOffset; in readAt()
424 OSL_FILE_TRACE("FileHandle_Impl::readAt(%d, %lld, %ld)", m_fd, nOffset, nBytes); in readAt()
430 off_t nOffset, in writeAt() argument
443 if (nOffset != m_offset) in writeAt()
445 if (-1 == ::lseek (m_fd, nOffset, SEEK_SET)) in writeAt()
447 m_offset = nOffset; in writeAt()
455 OSL_FILE_TRACE("FileHandle_Impl::writeAt(%d, %lld, %ld)", m_fd, nOffset, nBytes); in writeAt()
456 m_size = std::max (m_size, sal::static_int_cast< sal_uInt64 >(nOffset + nBytes)); in writeAt()
463 off_t nOffset, in readFileAt() argument
480 return readAt (nOffset, pBuffer, nBytesRequested, pBytesRead); in readFileAt()
487 off_t const bufptr = (nOffset / m_bufsiz) * m_bufsiz; in readFileAt()
488 size_t const bufpos = (nOffset % m_bufsiz); in readFileAt()
501 result = readAt (nOffset, &(buffer[*pBytesRead]), nBytesRequested, &uDone); in readFileAt()
523 OSL_FILE_TRACE("FileHandle_Impl::readFileAt(%d, %lld, %ld)", m_fd, nOffset, bytes); in readFileAt()
526 nBytesRequested -= bytes, *pBytesRead += bytes, nOffset += bytes; in readFileAt()
533 off_t nOffset, in writeFileAt() argument
550 return writeAt (nOffset, pBuffer, nBytesToWrite, pBytesWritten); in writeFileAt()
557 off_t const bufptr = (nOffset / m_bufsiz) * m_bufsiz; in writeFileAt()
558 size_t const bufpos = (nOffset % m_bufsiz); in writeFileAt()
570 result = writeAt (nOffset, &(buffer[*pBytesWritten]), nBytesToWrite, &uDone); in writeFileAt()
589 OSL_FILE_TRACE("FileHandle_Impl::writeFileAt(%d, %lld, %ld)", m_fd, nOffset, bytes); in writeFileAt()
592 nBytesToWrite -= bytes, *pBytesWritten += bytes, nOffset += bytes; in writeFileAt()
602 LONGLONG nOffset, in readLineAt() argument
608 LONGLONG bufptr = (nOffset / m_bufsiz) * m_bufsiz; in readLineAt()
629 size_t bufpos = sal::static_int_cast< size_t >(nOffset - m_bufptr), curpos = bufpos, dstpos = 0; in readLineAt()
644 *pBytesRead += curpos - bufpos, nOffset += curpos - bufpos; in readLineAt()
647 bufptr = nOffset / m_bufsiz * m_bufsiz; in readLineAt()
658 bufpos = sal::static_int_cast< size_t >(nOffset - m_bufptr), curpos = bufpos; in readLineAt()
701 *pBytesRead += curpos - bufpos, nOffset += curpos - bufpos; in readLineAt()
1579 off_t const nOffset = sal::static_int_cast< off_t >(uOffset); in osl_mapFile() local
1582 void* p = mmap(NULL, nLength, PROT_READ, MAP_PRIVATE, pImpl->m_fd, nOffset); in osl_mapFile()
1584 void* p = mmap(NULL, nLength, PROT_READ, MAP_SHARED, pImpl->m_fd, nOffset); in osl_mapFile()
1742 off_t const nOffset = sal::static_int_cast< off_t >(uOffset); in osl_readFileAt() local
1750 return pImpl->readFileAt (nOffset, pBuffer, nBytesRequested, pBytesRead); in osl_readFileAt()
1776 off_t const nOffset = sal::static_int_cast< off_t >(uOffset); in osl_writeFileAt() local
1784 return pImpl->writeFileAt (nOffset, pBuffer, nBytesToWrite, pBytesWritten); in osl_writeFileAt()
1831 off_t nPos = 0, nOffset = sal::static_int_cast< off_t >(uOffset); in osl_setFilePos() local
1836 if (0 > nOffset) in osl_setFilePos()
1842 if ((0 > nOffset) && (-1*nOffset > nPos)) in osl_setFilePos()
1844 if (g_limit_off_t < nPos + nOffset) in osl_setFilePos()
1850 if ((0 > nOffset) && (-1*nOffset > nPos)) in osl_setFilePos()
1852 if (g_limit_off_t < nPos + nOffset) in osl_setFilePos()
1860 return pImpl->setPos (nPos + nOffset); in osl_setFilePos()