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

#include <stgstrms.hxx>

Inheritance diagram for StgFATStrm:
[legend]
Collaboration diagram for StgFATStrm:
[legend]

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 ()
 
StgIoGetIo ()
 
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
StgIom_rIo
 
std::unique_ptr< StgFATm_pFat
 
StgDirEntrym_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
 

Detailed Description

Definition at line 104 of file stgstrms.hxx.

Constructor & Destructor Documentation

◆ StgFATStrm()

StgFATStrm::StgFATStrm ( StgIo r,
sal_Int32  nFatStrmSize 
)
explicit

Definition at line 579 of file stgstrms.cxx.

References StgStrm::m_nSize, and StgStrm::m_pFat.

Member Function Documentation

◆ GetPage() [1/2]

sal_Int32 StgStrm::GetPage ( ) const
inline

Definition at line 89 of file stgstrms.hxx.

Referenced by Pos2Page(), and SetSize().

◆ GetPage() [2/2]

sal_Int32 StgFATStrm::GetPage ( sal_Int32  nOff,
bool  bMake,
sal_uInt16 *  pnMasterAlloc = nullptr 
)

◆ Pos2Page()

bool StgFATStrm::Pos2Page ( sal_Int32  nBytePos)
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().

Referenced by GetPage(), SetPage(), and SetSize().

◆ SetPage()

bool StgFATStrm::SetPage ( short  nOff,
sal_Int32  nNewPage 
)
private

◆ SetSize()

bool StgFATStrm::SetSize ( sal_Int32  nBytes)
overridevirtual

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