LibreOffice Module unoidl (master) 1
Public Member Functions | Public Attributes | Private Member Functions | List of all members
unoidl::detail::MappedFile Class Reference
Inheritance diagram for unoidl::detail::MappedFile:
[legend]
Collaboration diagram for unoidl::detail::MappedFile:
[legend]

Public Member Functions

 MappedFile (OUString fileUrl)
 
sal_uInt8 read8 (sal_uInt32 offset) const
 
sal_uInt16 read16 (sal_uInt32 offset) const
 
sal_uInt32 read32 (sal_uInt32 offset) const
 
sal_uInt64 read64 (sal_uInt32 offset) const
 
float readIso60599Binary32 (sal_uInt32 offset) const
 
double readIso60599Binary64 (sal_uInt32 offset) const
 
OUString readNulName (sal_uInt32 offset)
 
OUString readIdxName (sal_uInt32 *offset) const
 
OUString readIdxString (sal_uInt32 *offset) const
 
- Public Member Functions inherited from salhelper::SimpleReferenceObject
 SimpleReferenceObject ()
 
void acquire ()
 
void release ()
 

Public Attributes

OUString uri
 
oslFileHandle handle
 
sal_uInt64 size
 
void * address
 

Private Member Functions

virtual ~MappedFile () override
 
sal_uInt8 get8 (sal_uInt32 offset) const
 
sal_uInt16 get16 (sal_uInt32 offset) const
 
sal_uInt32 get32 (sal_uInt32 offset) const
 
sal_uInt64 get64 (sal_uInt32 offset) const
 
float getIso60599Binary32 (sal_uInt32 offset) const
 
double getIso60599Binary64 (sal_uInt32 offset) const
 
OUString readIdxString (sal_uInt32 *offset, rtl_TextEncoding encoding) const
 

Additional Inherited Members

- Static Public Member Functions inherited from salhelper::SimpleReferenceObject
static void * operator new (std::size_t nSize)
 
static void * operator new (std::size_t nSize, std::nothrow_t const &rNothrow)
 
static void operator delete (void *pPtr)
 
static void operator delete (void *pPtr, std::nothrow_t const &rNothrow)
 
- Protected Member Functions inherited from salhelper::SimpleReferenceObject
virtual ~SimpleReferenceObject () COVERITY_NOEXCEPT_FALSE
 
- Protected Attributes inherited from salhelper::SimpleReferenceObject
oslInterlockedCount m_nCount
 

Detailed Description

Definition at line 37 of file unoidlprovider.cxx.

Constructor & Destructor Documentation

◆ MappedFile()

unoidl::detail::MappedFile::MappedFile ( OUString  fileUrl)
explicit

Definition at line 262 of file unoidlprovider.cxx.

References address, handle, SAL_WARN_IF, size, and uri.

◆ ~MappedFile()

unoidl::detail::MappedFile::~MappedFile ( )
overrideprivatevirtual

Definition at line 372 of file unoidlprovider.cxx.

References address, handle, SAL_WARN_IF, and size.

Member Function Documentation

◆ get16()

sal_uInt16 unoidl::detail::MappedFile::get16 ( sal_uInt32  offset) const
private

Definition at line 385 of file unoidlprovider.cxx.

References address, and size.

Referenced by read16().

◆ get32()

sal_uInt32 unoidl::detail::MappedFile::get32 ( sal_uInt32  offset) const
private

Definition at line 392 of file unoidlprovider.cxx.

References address, and size.

Referenced by read32().

◆ get64()

sal_uInt64 unoidl::detail::MappedFile::get64 ( sal_uInt32  offset) const
private

Definition at line 399 of file unoidlprovider.cxx.

References address, and size.

Referenced by read64().

◆ get8()

sal_uInt8 unoidl::detail::MappedFile::get8 ( sal_uInt32  offset) const
private

Definition at line 379 of file unoidlprovider.cxx.

References address, and size.

Referenced by read8().

◆ getIso60599Binary32()

float unoidl::detail::MappedFile::getIso60599Binary32 ( sal_uInt32  offset) const
private

Definition at line 406 of file unoidlprovider.cxx.

References address, and size.

Referenced by readIso60599Binary32().

◆ getIso60599Binary64()

double unoidl::detail::MappedFile::getIso60599Binary64 ( sal_uInt32  offset) const
private

Definition at line 413 of file unoidlprovider.cxx.

References address, and size.

Referenced by readIso60599Binary64().

◆ read16()

sal_uInt16 unoidl::detail::MappedFile::read16 ( sal_uInt32  offset) const

Definition at line 295 of file unoidlprovider.cxx.

References get16(), size, and uri.

◆ read32()

sal_uInt32 unoidl::detail::MappedFile::read32 ( sal_uInt32  offset) const

Definition at line 304 of file unoidlprovider.cxx.

References get32(), size, and uri.

Referenced by readIdxString().

◆ read64()

sal_uInt64 unoidl::detail::MappedFile::read64 ( sal_uInt32  offset) const

Definition at line 313 of file unoidlprovider.cxx.

References get64(), size, and uri.

◆ read8()

sal_uInt8 unoidl::detail::MappedFile::read8 ( sal_uInt32  offset) const

Definition at line 286 of file unoidlprovider.cxx.

References get8(), size, and uri.

◆ readIdxName()

OUString unoidl::detail::MappedFile::readIdxName ( sal_uInt32 *  offset) const
inline

Definition at line 55 of file unoidlprovider.cxx.

References readIdxString().

◆ readIdxString() [1/2]

OUString unoidl::detail::MappedFile::readIdxString ( sal_uInt32 *  offset) const
inline

Definition at line 58 of file unoidlprovider.cxx.

References readIdxString().

Referenced by readIdxName(), and readIdxString().

◆ readIdxString() [2/2]

OUString unoidl::detail::MappedFile::readIdxString ( sal_uInt32 *  offset,
rtl_TextEncoding  encoding 
) const
private

Definition at line 420 of file unoidlprovider.cxx.

References address, name, read32(), SAL_MAX_INT32, size, and uri.

◆ readIso60599Binary32()

float unoidl::detail::MappedFile::readIso60599Binary32 ( sal_uInt32  offset) const

Definition at line 322 of file unoidlprovider.cxx.

References getIso60599Binary32(), size, and uri.

◆ readIso60599Binary64()

double unoidl::detail::MappedFile::readIso60599Binary64 ( sal_uInt32  offset) const

Definition at line 331 of file unoidlprovider.cxx.

References getIso60599Binary64(), size, and uri.

◆ readNulName()

OUString unoidl::detail::MappedFile::readNulName ( sal_uInt32  offset)

Definition at line 340 of file unoidlprovider.cxx.

References address, end, name, SAL_MAX_INT32, size, and uri.

Member Data Documentation

◆ address

void* unoidl::detail::MappedFile::address

◆ handle

oslFileHandle unoidl::detail::MappedFile::handle

Definition at line 62 of file unoidlprovider.cxx.

Referenced by MappedFile(), and ~MappedFile().

◆ size

sal_uInt64 unoidl::detail::MappedFile::size

◆ uri

OUString unoidl::detail::MappedFile::uri

The documentation for this class was generated from the following file: