LibreOffice Module sot (master) 1
|
#include <stgstrms.hxx>
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< StgPage > | GetPhysPage (sal_Int32 nPage) |
bool | MakeChain (sal_Int32 nStart, sal_Int32 nPages) |
bool | InitNew (sal_Int32 nPage1) |
Private Attributes | |
StgStrm & | m_rStrm |
sal_Int32 | m_nMaxPage |
short | m_nPageSize |
short | m_nEntries |
short | m_nOffset |
sal_Int32 | m_nLimit |
bool | m_bPhys |
Definition at line 38 of file stgstrms.hxx.
StgFAT::StgFAT | ( | StgStrm & | rStrm, |
bool | bMark | ||
) |
Definition at line 41 of file stgstrms.cxx.
References StgStrm::GetIo(), StgCache::GetPhysPageSize(), m, m_bPhys, m_nEntries, m_nLimit, m_nMaxPage, m_nOffset, m_nPageSize, and m_rStrm.
sal_Int32 StgFAT::AllocPages | ( | sal_Int32 | nStart, |
sal_Int32 | nPages | ||
) |
Definition at line 212 of file stgstrms.cxx.
References FindBlock(), StgStrm::GetIo(), GetPhysPage(), StgStrm::GetSize(), InitNew(), m_bPhys, m_nMaxPage, m_nOffset, m_rStrm, MakeChain(), StgCache::SetError(), StgStrm::SetSize(), StgCache::SetToPage(), STG_EOF, and SVSTREAM_FILEFORMAT_ERROR.
sal_Int32 StgFAT::FindBlock | ( | sal_Int32 & | nPages | ) |
Definition at line 88 of file stgstrms.cxx.
References StgCache::GetFromPage(), GetPhysPage(), StgStrm::GetSize(), i, m_nEntries, m_nLimit, m_rStrm, STG_EOF, and STG_FREE.
Referenced by AllocPages().
bool StgFAT::FreePages | ( | sal_Int32 | nStart, |
bool | bAll | ||
) |
Definition at line 301 of file stgstrms.cxx.
References StgCache::GetFromPage(), StgStrm::GetIo(), GetPhysPage(), m_nOffset, m_rStrm, StgCache::SetToPage(), STG_EOF, and STG_FREE.
|
inline |
Definition at line 56 of file stgstrms.hxx.
References m_nMaxPage.
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.
|
private |
Definition at line 53 of file stgstrms.cxx.
References StgCache::Get(), StgStrm::GetIo(), StgStrm::GetOffset(), StgStrm::GetPage(), m_nOffset, m_rStrm, and StgStrm::Pos2Page().
Referenced by AllocPages(), FindBlock(), FreePages(), GetNextPage(), and MakeChain().
|
private |
Definition at line 276 of file stgstrms.cxx.
References StgCache::Copy(), StgStrm::GetIo(), StgStrm::GetPage(), StgStrm::GetSize(), i, m_nEntries, m_rStrm, n, StgStrm::Pos2Page(), StgCache::SetToPage(), and STG_FREE.
Referenced by AllocPages().
|
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().
|
inline |
Definition at line 57 of file stgstrms.hxx.
|
private |
Definition at line 46 of file stgstrms.hxx.
Referenced by AllocPages(), and StgFAT().
|
private |
Definition at line 43 of file stgstrms.hxx.
Referenced by FindBlock(), InitNew(), and StgFAT().
|
private |
Definition at line 45 of file stgstrms.hxx.
Referenced by FindBlock(), SetLimit(), and StgFAT().
|
private |
Definition at line 41 of file stgstrms.hxx.
Referenced by AllocPages(), GetMaxPage(), and StgFAT().
|
private |
Definition at line 44 of file stgstrms.hxx.
Referenced by AllocPages(), FreePages(), GetNextPage(), GetPhysPage(), MakeChain(), and StgFAT().
|
private |
Definition at line 42 of file stgstrms.hxx.
Referenced by MakeChain(), and StgFAT().
|
private |
Definition at line 40 of file stgstrms.hxx.
Referenced by AllocPages(), FindBlock(), FreePages(), GetPhysPage(), InitNew(), MakeChain(), and StgFAT().