Lines Matching refs:nOffset

111         off_t        nOffset,
117 off_t nOffset,
123 off_t nOffset,
129 off_t nOffset,
135 off_t nOffset,
338 off_t nOffset, in readAt() argument
353 ssize_t nBytes = ::pread (m_fd, pBuffer, nBytesRequested, nOffset); in readAt()
367 if (nOffset != m_offset) in readAt()
369 if (-1 == ::lseek (m_fd, nOffset, SEEK_SET)) in readAt()
371 m_offset = nOffset; in readAt()
381 OSL_FILE_TRACE("FileHandle_Impl::readAt(%d, %lld, %ld)", m_fd, nOffset, nBytes); in readAt()
387 off_t nOffset, in writeAt() argument
402 ssize_t nBytes = ::pwrite (m_fd, pBuffer, nBytesToWrite, nOffset); in writeAt()
408 if (nOffset != m_offset) in writeAt()
410 if (-1 == ::lseek (m_fd, nOffset, SEEK_SET)) in writeAt()
412 m_offset = nOffset; in writeAt()
422 OSL_FILE_TRACE("FileHandle_Impl::writeAt(%d, %lld, %ld)", m_fd, nOffset, nBytes); in writeAt()
423 m_size = std::max (m_size, sal::static_int_cast< sal_uInt64 >(nOffset + nBytes)); in writeAt()
430 off_t nOffset, in readFileAt() argument
447 return readAt (nOffset, pBuffer, nBytesRequested, pBytesRead); in readFileAt()
454 off_t const bufptr = (nOffset / m_bufsiz) * m_bufsiz; in readFileAt()
455 size_t const bufpos = (nOffset % m_bufsiz); in readFileAt()
469 result = readAt (nOffset, &(buffer[*pBytesRead]), nBytesRequested, &uDone); in readFileAt()
491 OSL_FILE_TRACE("FileHandle_Impl::readFileAt(%d, %lld, %ld)", m_fd, nOffset, bytes); in readFileAt()
494 nBytesRequested -= bytes, *pBytesRead += bytes, nOffset += bytes; in readFileAt()
501 off_t nOffset, in writeFileAt() argument
518 return writeAt (nOffset, pBuffer, nBytesToWrite, pBytesWritten); in writeFileAt()
525 off_t const bufptr = (nOffset / m_bufsiz) * m_bufsiz; in writeFileAt()
526 size_t const bufpos = (nOffset % m_bufsiz); in writeFileAt()
539 result = writeAt (nOffset, &(buffer[*pBytesWritten]), nBytesToWrite, &uDone); in writeFileAt()
558 OSL_FILE_TRACE("FileHandle_Impl::writeFileAt(%d, %lld, %ld)", m_fd, nOffset, bytes); in writeFileAt()
561 nBytesToWrite -= bytes, *pBytesWritten += bytes, nOffset += bytes; in writeFileAt()
571 off_t nOffset, in readLineAt() argument
577 off_t bufptr = nOffset / m_bufsiz * m_bufsiz; in readLineAt()
598 size_t bufpos = nOffset - m_bufptr, curpos = bufpos, dstpos = 0; in readLineAt()
613 *pBytesRead += curpos - bufpos, nOffset += curpos - bufpos; in readLineAt()
616 bufptr = nOffset / m_bufsiz * m_bufsiz; in readLineAt()
627 bufpos = nOffset - m_bufptr, curpos = bufpos; in readLineAt()
670 *pBytesRead += curpos - bufpos, nOffset += curpos - bufpos; in readLineAt()
1044 off_t const nOffset = sal::static_int_cast< off_t >(uOffset); in osl_mapFile() local
1046 void* p = mmap(NULL, nLength, PROT_READ, MAP_SHARED, pImpl->m_fd, nOffset); in osl_mapFile()
1229 off_t const nOffset = sal::static_int_cast< off_t >(uOffset); in osl_readFileAt() local
1238 return pImpl->readFileAt (nOffset, pBuffer, nBytesRequested, pBytesRead); in osl_readFileAt()
1264 off_t const nOffset = sal::static_int_cast< off_t >(uOffset); in osl_writeFileAt() local
1273 return pImpl->writeFileAt (nOffset, pBuffer, nBytesToWrite, pBytesWritten); in osl_writeFileAt()
1322 off_t nPos = 0, nOffset = sal::static_int_cast< off_t >(uOffset); in osl_setFilePos() local
1328 if (0 > nOffset) in osl_setFilePos()
1334 if ((0 > nOffset) && (-1*nOffset > nPos)) in osl_setFilePos()
1336 if (g_limit_off_t < nPos + nOffset) in osl_setFilePos()
1342 if ((0 > nOffset) && (-1*nOffset > nPos)) in osl_setFilePos()
1344 if (g_limit_off_t < nPos + nOffset) in osl_setFilePos()
1352 return pImpl->setPos (nPos + nOffset); in osl_setFilePos()