LibreOffice Module sot (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
StgFAT Class Reference

#include <stgstrms.hxx>

Collaboration diagram for StgFAT:
[legend]

Public Member Functions

 StgFAT (StgStrm &rStrm, bool bMark)
 
sal_Int32 FindBlock (sal_Int32 &nPages)
 
sal_Int32 GetNextPage (sal_Int32 nPg)
 
sal_Int32 AllocPages (sal_Int32 nStart, sal_Int32 nPages)
 
bool FreePages (sal_Int32 nStart, bool bAll)
 
sal_Int32 GetMaxPage () const
 
void SetLimit (sal_Int32 n)
 

Private Member Functions

rtl::Reference< StgPageGetPhysPage (sal_Int32 nPage)
 
bool MakeChain (sal_Int32 nStart, sal_Int32 nPages)
 
bool InitNew (sal_Int32 nPage1)
 

Private Attributes

StgStrmm_rStrm
 
sal_Int32 m_nMaxPage
 
short m_nPageSize
 
short m_nEntries
 
short m_nOffset
 
sal_Int32 m_nLimit
 
bool m_bPhys
 

Detailed Description

Definition at line 38 of file stgstrms.hxx.

Constructor & Destructor Documentation

◆ StgFAT()

StgFAT::StgFAT ( StgStrm rStrm,
bool  bMark 
)

Member Function Documentation

◆ AllocPages()

sal_Int32 StgFAT::AllocPages ( sal_Int32  nStart,
sal_Int32  nPages 
)

◆ FindBlock()

sal_Int32 StgFAT::FindBlock ( sal_Int32 &  nPages)

◆ FreePages()

bool StgFAT::FreePages ( sal_Int32  nStart,
bool  bAll 
)

◆ GetMaxPage()

sal_Int32 StgFAT::GetMaxPage ( ) const
inline

Definition at line 56 of file stgstrms.hxx.

References m_nMaxPage.

◆ GetNextPage()

sal_Int32 StgFAT::GetNextPage ( sal_Int32  nPg)

Definition at line 70 of file stgstrms.cxx.

References StgCache::GetFromPage(), GetPhysPage(), m_nOffset, SAL_MAX_INT32, and STG_EOF.

◆ GetPhysPage()

rtl::Reference< StgPage > StgFAT::GetPhysPage ( sal_Int32  nPage)
private

◆ InitNew()

bool StgFAT::InitNew ( sal_Int32  nPage1)
private

◆ MakeChain()

bool StgFAT::MakeChain ( sal_Int32  nStart,
sal_Int32  nPages 
)
private

Definition at line 181 of file stgstrms.cxx.

References StgStrm::GetIo(), GetPhysPage(), m_nOffset, m_nPageSize, m_rStrm, nPos, StgCache::SetToPage(), and STG_EOF.

Referenced by AllocPages().

◆ SetLimit()

void StgFAT::SetLimit ( sal_Int32  n)
inline

Definition at line 57 of file stgstrms.hxx.

References m_nLimit, and n.

Member Data Documentation

◆ m_bPhys

bool StgFAT::m_bPhys
private

Definition at line 46 of file stgstrms.hxx.

Referenced by AllocPages(), and StgFAT().

◆ m_nEntries

short StgFAT::m_nEntries
private

Definition at line 43 of file stgstrms.hxx.

Referenced by FindBlock(), InitNew(), and StgFAT().

◆ m_nLimit

sal_Int32 StgFAT::m_nLimit
private

Definition at line 45 of file stgstrms.hxx.

Referenced by FindBlock(), SetLimit(), and StgFAT().

◆ m_nMaxPage

sal_Int32 StgFAT::m_nMaxPage
private

Definition at line 41 of file stgstrms.hxx.

Referenced by AllocPages(), GetMaxPage(), and StgFAT().

◆ m_nOffset

short StgFAT::m_nOffset
private

Definition at line 44 of file stgstrms.hxx.

Referenced by AllocPages(), FreePages(), GetNextPage(), GetPhysPage(), MakeChain(), and StgFAT().

◆ m_nPageSize

short StgFAT::m_nPageSize
private

Definition at line 42 of file stgstrms.hxx.

Referenced by MakeChain(), and StgFAT().

◆ m_rStrm

StgStrm& StgFAT::m_rStrm
private

Definition at line 40 of file stgstrms.hxx.

Referenced by AllocPages(), FindBlock(), FreePages(), GetPhysPage(), InitNew(), MakeChain(), and StgFAT().


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