Lines Matching refs:pImpl
673 FileHandle_Impl * pImpl = new FileHandle_Impl(hFile); in osl_createFileHandleFromOSHandle() local
674 if (pImpl == 0) in osl_createFileHandleFromOSHandle()
685 pImpl->m_state |= FileHandle_Impl::STATE_SEEKABLE; in osl_createFileHandleFromOSHandle()
690 pImpl->m_size = (sal::static_int_cast<sal_uInt64>(uSize.HighPart) << 32) + uSize.LowPart; in osl_createFileHandleFromOSHandle()
694 pImpl->m_state &= ~FileHandle_Impl::STATE_READABLE; in osl_createFileHandleFromOSHandle()
696 pImpl->m_state &= ~FileHandle_Impl::STATE_WRITEABLE; in osl_createFileHandleFromOSHandle()
701 return (oslFileHandle)(pImpl); in osl_createFileHandleFromOSHandle()
749 FileHandle_Impl * pImpl = static_cast<FileHandle_Impl*>(Handle); in osl_syncFile() local
750 if ((0 == pImpl) || !IsValidHandle(pImpl->m_hFile)) in osl_syncFile()
753 FileHandle_Impl::Guard lock (&(pImpl->m_mutex)); in osl_syncFile()
755 oslFileError result = pImpl->syncFile(); in osl_syncFile()
759 if (!FlushFileBuffers(pImpl->m_hFile)) in osl_syncFile()
769 FileHandle_Impl * pImpl = static_cast<FileHandle_Impl*>(Handle); in osl_closeFile() local
770 if ((0 == pImpl) || !IsValidHandle(pImpl->m_hFile)) in osl_closeFile()
773 ::EnterCriticalSection (&(pImpl->m_mutex)); in osl_closeFile()
775 oslFileError result = pImpl->syncFile(); in osl_closeFile()
779 (void)::CloseHandle(pImpl->m_hFile); in osl_closeFile()
781 else if (!::CloseHandle(pImpl->m_hFile)) in osl_closeFile()
787 ::LeaveCriticalSection (&(pImpl->m_mutex)); in osl_closeFile()
788 delete pImpl; in osl_closeFile()
815 FileHandle_Impl * pImpl = static_cast<FileHandle_Impl*>(Handle); in osl_mapFile() local
816 if ((0 == pImpl) || !IsValidHandle(pImpl->m_hFile) || (0 == ppAddr)) in osl_mapFile()
832 …FileMapping aMap( ::CreateFileMapping (pImpl->m_hFile, NULL, SEC_COMMIT | PAGE_READONLY, 0, 0, NUL… in osl_mapFile()
893 FileHandle_Impl * pImpl = static_cast<FileHandle_Impl*>(Handle); in osl_readLine() local
894 if ((0 == pImpl) || !IsValidHandle(pImpl->m_hFile) || (0 == ppSequence)) in osl_readLine()
899 FileHandle_Impl::Guard lock (&(pImpl->m_mutex)); in osl_readLine()
900 oslFileError result = pImpl->readLineAt ( in osl_readLine()
901 pImpl->m_filepos, ppSequence, &uBytesRead); in osl_readLine()
903 pImpl->m_filepos += uBytesRead; in osl_readLine()
915 FileHandle_Impl * pImpl = static_cast<FileHandle_Impl*>(Handle); in osl_readFile() local
916 if ((0 == pImpl) || !IsValidHandle(pImpl->m_hFile) || (0 == pBuffer) || (0 == pBytesRead)) in osl_readFile()
920 FileHandle_Impl::Guard lock (&(pImpl->m_mutex)); in osl_readFile()
921 oslFileError result = pImpl->readFileAt ( in osl_readFile()
922 pImpl->m_filepos, pBuffer, uBytesRequested, pBytesRead); in osl_readFile()
924 pImpl->m_filepos += *pBytesRead; in osl_readFile()
936 FileHandle_Impl * pImpl = static_cast<FileHandle_Impl*>(Handle); in osl_writeFile() local
938 if ((0 == pImpl) || !IsValidHandle(pImpl->m_hFile) || (0 == pBuffer) || (0 == pBytesWritten)) in osl_writeFile()
942 FileHandle_Impl::Guard lock (&(pImpl->m_mutex)); in osl_writeFile()
943 oslFileError result = pImpl->writeFileAt ( in osl_writeFile()
944 pImpl->m_filepos, pBuffer, uBytesToWrite, pBytesWritten); in osl_writeFile()
946 pImpl->m_filepos += *pBytesWritten; in osl_writeFile()
959 FileHandle_Impl * pImpl = static_cast<FileHandle_Impl*>(Handle); in osl_readFileAt() local
961 if ((0 == pImpl) || !IsValidHandle(pImpl->m_hFile) || (0 == pBuffer) || (0 == pBytesRead)) in osl_readFileAt()
963 if (0 == (pImpl->m_state & FileHandle_Impl::STATE_SEEKABLE)) in osl_readFileAt()
972 FileHandle_Impl::Guard lock (&(pImpl->m_mutex)); in osl_readFileAt()
973 return pImpl->readFileAt (nOffset, pBuffer, uBytesRequested, pBytesRead); in osl_readFileAt()
985 FileHandle_Impl * pImpl = static_cast<FileHandle_Impl*>(Handle); in osl_writeFileAt() local
987 if ((0 == pImpl) || !IsValidHandle(pImpl->m_hFile) || (0 == pBuffer) || (0 == pBytesWritten)) in osl_writeFileAt()
989 if (0 == (pImpl->m_state & FileHandle_Impl::STATE_SEEKABLE)) in osl_writeFileAt()
998 FileHandle_Impl::Guard lock (&(pImpl->m_mutex)); in osl_writeFileAt()
999 return pImpl->writeFileAt (nOffset, pBuffer, uBytesToWrite, pBytesWritten); in osl_writeFileAt()
1006 FileHandle_Impl * pImpl = static_cast<FileHandle_Impl*>(Handle); in osl_isEndOfFile() local
1008 if ((0 == pImpl) || !IsValidHandle(pImpl->m_hFile) || (0 == pIsEOF)) in osl_isEndOfFile()
1011 FileHandle_Impl::Guard lock (&(pImpl->m_mutex)); in osl_isEndOfFile()
1012 *pIsEOF = (pImpl->getPos() == pImpl->getSize()); in osl_isEndOfFile()
1020 FileHandle_Impl * pImpl = static_cast<FileHandle_Impl*>(Handle); in osl_getFilePos() local
1021 if ((0 == pImpl) || !IsValidHandle(pImpl->m_hFile) || (0 == pPos)) in osl_getFilePos()
1024 FileHandle_Impl::Guard lock (&(pImpl->m_mutex)); in osl_getFilePos()
1025 *pPos = pImpl->getPos(); in osl_getFilePos()
1033 FileHandle_Impl * pImpl = static_cast<FileHandle_Impl*>(Handle); in osl_setFilePos() local
1034 if ((0 == pImpl) || !IsValidHandle(pImpl->m_hFile)) in osl_setFilePos()
1042 FileHandle_Impl::Guard lock (&(pImpl->m_mutex)); in osl_setFilePos()
1051 nPos = sal::static_int_cast< LONGLONG >(pImpl->getPos()); in osl_setFilePos()
1059 nPos = sal::static_int_cast< LONGLONG >(pImpl->getSize()); in osl_setFilePos()
1070 return pImpl->setPos (nPos + nOffset); in osl_setFilePos()
1077 FileHandle_Impl * pImpl = static_cast<FileHandle_Impl*>(Handle); in osl_getFileSize() local
1079 if ((0 == pImpl) || !IsValidHandle(pImpl->m_hFile) || (0 == pSize)) in osl_getFileSize()
1082 FileHandle_Impl::Guard lock (&(pImpl->m_mutex)); in osl_getFileSize()
1083 *pSize = pImpl->getSize(); in osl_getFileSize()
1091 FileHandle_Impl * pImpl = static_cast<FileHandle_Impl*>(Handle); in osl_setFileSize() local
1093 if ((0 == pImpl) || !IsValidHandle(pImpl->m_hFile)) in osl_setFileSize()
1095 if (0 == (pImpl->m_state & FileHandle_Impl::STATE_WRITEABLE)) in osl_setFileSize()
1102 FileHandle_Impl::Guard lock (&(pImpl->m_mutex)); in osl_setFileSize()
1103 oslFileError result = pImpl->syncFile(); in osl_setFileSize()
1106 pImpl->m_bufptr = -1, pImpl->m_buflen = 0; in osl_setFileSize()
1108 return pImpl->setSize (uSize); in osl_setFileSize()