LibreOffice Module store (master) 1
|
#include <lockbyte.hxx>
Public Member Functions | |
storeError | initialize (rtl::Reference< PageData::Allocator > &rxAllocator, sal_uInt16 nPageSize) |
storeError | readPageAt (std::shared_ptr< PageData > &rPage, sal_uInt32 nOffset) |
storeError | writePageAt (std::shared_ptr< PageData > const &rPage, sal_uInt32 nOffset) |
storeError | readAt (sal_uInt32 nOffset, void *pBuffer, sal_uInt32 nBytes) |
storeError | writeAt (sal_uInt32 nOffset, const void *pBuffer, sal_uInt32 nBytes) |
storeError | getSize (sal_uInt32 &rnSize) |
storeError | setSize (sal_uInt32 nSize) |
storeError | flush () |
Public Member Functions inherited from salhelper::SimpleReferenceObject | |
SimpleReferenceObject () | |
void | acquire () |
void | release () |
Protected Member Functions | |
virtual | ~ILockBytes () override |
Protected Member Functions inherited from salhelper::SimpleReferenceObject | |
virtual | ~SimpleReferenceObject () COVERITY_NOEXCEPT_FALSE |
Private Member Functions | |
virtual storeError | initialize_Impl (rtl::Reference< PageData::Allocator > &rxAllocator, sal_uInt16 nPageSize)=0 |
Implementation (abstract). More... | |
virtual storeError | readPageAt_Impl (std::shared_ptr< PageData > &rPage, sal_uInt32 nOffset)=0 |
virtual storeError | writePageAt_Impl (std::shared_ptr< PageData > const &rPage, sal_uInt32 nOffset)=0 |
virtual storeError | readAt_Impl (sal_uInt32 nOffset, void *pBuffer, sal_uInt32 nBytes)=0 |
virtual storeError | writeAt_Impl (sal_uInt32 nOffset, const void *pBuffer, sal_uInt32 nBytes)=0 |
virtual storeError | getSize_Impl (sal_uInt32 &rnSize)=0 |
virtual storeError | setSize_Impl (sal_uInt32 nSize)=0 |
virtual storeError | flush_Impl ()=0 |
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 Attributes inherited from salhelper::SimpleReferenceObject | |
oslInterlockedCount | m_nCount |
Definition at line 39 of file lockbyte.hxx.
|
inlineoverrideprotectedvirtual |
Definition at line 106 of file lockbyte.hxx.
storeError ILockBytes::flush | ( | ) |
Definition at line 127 of file lockbyte.cxx.
References flush_Impl().
|
privatepure virtual |
Referenced by flush().
storeError ILockBytes::getSize | ( | sal_uInt32 & | rnSize | ) |
rnSize | [out] |
Definition at line 116 of file lockbyte.cxx.
References getSize_Impl().
|
privatepure virtual |
Referenced by getSize().
storeError ILockBytes::initialize | ( | rtl::Reference< PageData::Allocator > & | rxAllocator, |
sal_uInt16 | nPageSize | ||
) |
rxAllocator | [out] |
nPageSize | [in] |
Definition at line 37 of file lockbyte.cxx.
References initialize_Impl(), STORE_MAXIMUM_PAGESIZE, and STORE_MINIMUM_PAGESIZE.
|
privatepure virtual |
Implementation (abstract).
Referenced by initialize().
storeError ILockBytes::readAt | ( | sal_uInt32 | nOffset, |
void * | pBuffer, | ||
sal_uInt32 | nBytes | ||
) |
nOffset | [in] |
pBuffer | [out] |
nBytes | [in] |
Definition at line 72 of file lockbyte.cxx.
References readAt_Impl(), SAL_MAX_UINT32, store_E_CantSeek, store_E_InvalidParameter, store_E_None, and STORE_PAGE_NULL.
|
privatepure virtual |
Referenced by readAt().
storeError ILockBytes::readPageAt | ( | std::shared_ptr< PageData > & | rPage, |
sal_uInt32 | nOffset | ||
) |
rPage | [out] |
nOffset | [in] |
Definition at line 43 of file lockbyte.cxx.
References readPageAt_Impl(), store_E_CantSeek, and STORE_PAGE_NULL.
|
privatepure virtual |
Referenced by readPageAt().
storeError ILockBytes::setSize | ( | sal_uInt32 | nSize | ) |
nSize | [in] |
Definition at line 122 of file lockbyte.cxx.
References setSize_Impl().
|
privatepure virtual |
Referenced by setSize().
storeError ILockBytes::writeAt | ( | sal_uInt32 | nOffset, |
const void * | pBuffer, | ||
sal_uInt32 | nBytes | ||
) |
nOffset | [in] |
pBuffer | [in] |
nBytes | [in] |
Definition at line 94 of file lockbyte.cxx.
References SAL_MAX_UINT32, store_E_CantSeek, store_E_InvalidParameter, store_E_None, STORE_PAGE_NULL, and writeAt_Impl().
|
privatepure virtual |
Referenced by writeAt().
storeError ILockBytes::writePageAt | ( | std::shared_ptr< PageData > const & | rPage, |
sal_uInt32 | nOffset | ||
) |
rPage | [in] |
nOffset | [in] |
Definition at line 52 of file lockbyte.cxx.
References store::PageData::location(), store_E_CantSeek, store_E_InvalidParameter, STORE_PAGE_NULL, and writePageAt_Impl().
|
privatepure virtual |
Referenced by writePageAt().