LibreOffice Module sot (master) 1
|
#include <stgstrms.hxx>
Public Member Functions | |
StgFATStrm (StgIo &, sal_Int32 nFatStrmSize) | |
sal_Int32 | GetPage (sal_Int32, bool, sal_uInt16 *pnMasterAlloc=nullptr) |
virtual bool | SetSize (sal_Int32) override |
sal_Int32 | GetPage () const |
Public Member Functions inherited from StgStrm | |
virtual | ~StgStrm () |
StgIo & | GetIo () |
sal_Int32 | GetPos () const |
sal_Int32 | GetStart () const |
sal_Int32 | GetSize () const |
sal_Int32 | GetPage () const |
sal_Int32 | GetPages () const |
short | GetOffset () const |
void | SetEntry (StgDirEntry &) |
virtual bool | SetSize (sal_Int32) |
virtual bool | Pos2Page (sal_Int32 nBytePos) |
virtual sal_Int32 | Read (void *, sal_Int32) |
virtual sal_Int32 | Write (const void *, sal_Int32) |
virtual bool | IsSmallStrm () const |
Private Member Functions | |
virtual bool | Pos2Page (sal_Int32 nBytePos) override |
bool | SetPage (short, sal_Int32) |
Additional Inherited Members | |
Protected Member Functions inherited from StgStrm | |
sal_Int32 | scanBuildPageChainCache () |
bool | Copy (sal_Int32 nFrom, sal_Int32 nBytes) |
void | SetPos (sal_Int32 nPos, bool bValid) |
StgStrm (StgIo &) | |
Protected Attributes inherited from StgStrm | |
StgIo & | m_rIo |
std::unique_ptr< StgFAT > | m_pFat |
StgDirEntry * | m_pEntry |
sal_Int32 | m_nStart |
sal_Int32 | m_nSize |
sal_Int32 | m_nPage |
short | m_nOffset |
short | m_nPageSize |
std::vector< sal_Int32 > | m_aPagesCache |
o3tl::sorted_vector< sal_Int32 > | m_aUsedPageNumbers |
Definition at line 104 of file stgstrms.hxx.
|
explicit |
Definition at line 579 of file stgstrms.cxx.
References StgStrm::m_nSize, and StgStrm::m_pFat.
|
inline |
Definition at line 89 of file stgstrms.hxx.
Referenced by Pos2Page(), and SetSize().
sal_Int32 StgFATStrm::GetPage | ( | sal_Int32 | nOff, |
bool | bMake, | ||
sal_uInt16 * | pnMasterAlloc = nullptr |
||
) |
Definition at line 600 of file stgstrms.cxx.
References o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::clear(), StgCache::Copy(), StgCache::Get(), StgHeader::GetFAT1Size(), StgHeader::GetFATChain(), StgHeader::GetFATPage(), StgCache::GetFromPage(), StgCache::GetPhysPages(), StgIo::m_aHdr, StgStrm::m_aPagesCache, StgStrm::m_aUsedPageNumbers, StgStrm::m_nOffset, StgStrm::m_nPage, StgStrm::m_nPageSize, StgStrm::m_nSize, StgStrm::m_rIo, nCount, Pos2Page(), StgCache::SetError(), StgHeader::SetFATChain(), StgHeader::SetMasters(), StgCache::SetSize(), StgCache::SetToPage(), STG_EOF, STG_FREE, STG_MASTER, and SVSTREAM_GENERALERROR.
|
overrideprivatevirtual |
Reimplemented from StgStrm.
Definition at line 585 of file stgstrms.cxx.
References GetPage(), StgStrm::m_nOffset, StgStrm::m_nPage, StgStrm::m_nPageSize, StgStrm::m_nSize, and StgStrm::SetPos().
|
private |
Definition at line 678 of file stgstrms.cxx.
References o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::clear(), StgCache::Get(), StgHeader::GetFAT1Size(), StgHeader::GetFATChain(), StgCache::GetFromPage(), StgIo::m_aHdr, StgStrm::m_aPagesCache, StgStrm::m_aUsedPageNumbers, StgStrm::m_nOffset, StgStrm::m_nPage, StgStrm::m_nPageSize, StgStrm::m_rIo, nCount, Pos2Page(), StgCache::SetError(), StgHeader::SetFATPage(), StgCache::SetToPage(), STG_EOF, STG_FAT, STG_FREE, and SVSTREAM_GENERALERROR.
Referenced by SetSize().
|
overridevirtual |
Reimplemented from StgStrm.
Definition at line 731 of file stgstrms.cxx.
References o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::clear(), StgCache::Copy(), StgCache::Get(), StgHeader::GetFATChain(), StgCache::GetFromPage(), StgHeader::GetMasters(), GetPage(), StgCache::GetPhysPages(), i, StgIo::m_aHdr, StgStrm::m_aPagesCache, StgStrm::m_aUsedPageNumbers, StgStrm::m_nOffset, StgStrm::m_nPage, StgStrm::m_nPageSize, StgStrm::m_nSize, StgStrm::m_pFat, StgStrm::m_rIo, n, nCount, Pos2Page(), StgHeader::SetFATSize(), SetPage(), StgCache::SetSize(), StgCache::SetToPage(), STG_EOF, STG_FREE, and STG_MASTER.