LibreOffice Module store (master) 1
|
Public Types | |
typedef OStoreSuperBlock | SuperBlock |
Public Member Functions | |
SuperBlockPage (sal_uInt16 nPageSize=thePageSize) | |
storeError | save (OStorePageBIOS const &rBIOS, sal_uInt32 nSize=theSize) |
storeError | unusedHead (OStorePageBIOS const &rBIOS, PageData &rPageHead) |
Page allocation. More... | |
storeError | unusedPop (OStorePageBIOS const &rBIOS, PageData const &rPageHead) |
Pop freelist head (alloc page, step 2). More... | |
storeError | unusedPush (OStorePageBIOS const &rBIOS, sal_uInt32 nAddr) |
Push new freelist head. More... | |
storeError | verify (OStorePageBIOS const &rBIOS) |
Verify (with repair). More... | |
Static Public Member Functions | |
static void * | operator new (size_t n) |
static void | operator delete (void *p) |
static void * | operator new (SAL_UNUSED_PARAMETER size_t, sal_uInt16 nPageSize) |
static void | operator delete (void *p, SAL_UNUSED_PARAMETER sal_uInt16) |
Public Attributes | |
SuperBlock | m_aSuperOne |
SuperBlock | m_aSuperTwo |
Static Public Attributes | |
static const size_t | theSize = 2 * SuperBlock::theSize |
static const sal_uInt16 | thePageSize = theSize |
Definition at line 134 of file storbios.cxx.
typedef OStoreSuperBlock store::SuperBlockPage::SuperBlock |
Definition at line 136 of file storbios.cxx.
|
inlineexplicit |
Definition at line 165 of file storbios.cxx.
|
inlinestatic |
Definition at line 150 of file storbios.cxx.
References p.
|
inlinestatic |
Definition at line 160 of file storbios.cxx.
References p.
|
inlinestatic |
Definition at line 155 of file storbios.cxx.
|
inlinestatic |
Definition at line 145 of file storbios.cxx.
References n.
|
inline |
Definition at line 170 of file storbios.cxx.
References m_aSuperOne, m_aSuperTwo, and store::OStorePageBIOS::write().
Referenced by unusedHead(), unusedPop(), and unusedPush().
storeError SuperBlockPage::unusedHead | ( | OStorePageBIOS const & | rBIOS, |
PageData & | rPageHead | ||
) |
Page allocation.
Get freelist head (alloc page, step 1).
Definition at line 199 of file storbios.cxx.
References store::OStorePageLink::location(), store::PageData::location(), m_aSuperOne, store::PageData::m_aUnused, store::OStorePageBIOS::read(), SAL_WARN, save(), store_E_None, STORE_PAGE_NULL, store::PageData::theSize, verify(), and store::PageData::verify().
storeError SuperBlockPage::unusedPop | ( | OStorePageBIOS const & | rBIOS, |
PageData const & | rPageHead | ||
) |
Pop freelist head (alloc page, step 2).
Definition at line 242 of file storbios.cxx.
References store::OStorePageLink::location(), m_aSuperOne, store::PageData::m_aUnused, save(), store_E_CantSeek, and STORE_PAGE_NULL.
storeError SuperBlockPage::unusedPush | ( | OStorePageBIOS const & | rBIOS, |
sal_uInt32 | nAddr | ||
) |
Push new freelist head.
Definition at line 258 of file storbios.cxx.
References store::PageData::guard(), m_aSuperOne, store::PageData::m_aUnused, store::OStorePageBIOS::read(), save(), store_E_None, store::PageData::theSize, verify(), store::PageData::verify(), and store::OStorePageBIOS::write().
storeError SuperBlockPage::verify | ( | OStorePageBIOS const & | rBIOS | ) |
Verify (with repair).
Definition at line 288 of file storbios.cxx.
References store::OStorePageBIOS::isWriteable(), m_aSuperOne, m_aSuperTwo, SAL_WARN, store_E_None, theSize, and store::OStorePageBIOS::write().
Referenced by unusedHead(), and unusedPush().
SuperBlock store::SuperBlockPage::m_aSuperOne |
Definition at line 138 of file storbios.cxx.
Referenced by save(), unusedHead(), unusedPop(), unusedPush(), and verify().
SuperBlock store::SuperBlockPage::m_aSuperTwo |
Definition at line 139 of file storbios.cxx.
|
static |
Definition at line 142 of file storbios.cxx.
|
static |
Definition at line 141 of file storbios.cxx.
Referenced by store::OStorePageBIOS::initialize_Impl(), and verify().