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

#include <stgstrms.hxx>

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

Public Member Functions

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
 

Protected Member Functions

sal_Int32 scanBuildPageChainCache ()
 
bool Copy (sal_Int32 nFrom, sal_Int32 nBytes)
 
void SetPos (sal_Int32 nPos, bool bValid)
 
 StgStrm (StgIo &)
 

Protected Attributes

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
 

Private Attributes

sal_Int32 m_nPos
 
bool m_bBytePosValid
 

Detailed Description

Definition at line 64 of file stgstrms.hxx.

Constructor & Destructor Documentation

◆ StgStrm()

StgStrm::StgStrm ( StgIo r)
explicitprotected

Definition at line 322 of file stgstrms.cxx.

References m_nPageSize, m_nPos, and m_nSize.

◆ ~StgStrm()

StgStrm::~StgStrm ( )
virtual

Definition at line 335 of file stgstrms.cxx.

Member Function Documentation

◆ Copy()

bool StgStrm::Copy ( sal_Int32  nFrom,
sal_Int32  nBytes 
)
protected

◆ GetIo()

StgIo & StgStrm::GetIo ( )
inline

◆ GetOffset()

short StgStrm::GetOffset ( ) const
inline

Definition at line 91 of file stgstrms.hxx.

References m_nOffset.

Referenced by StgFAT::GetPhysPage().

◆ GetPage()

sal_Int32 StgStrm::GetPage ( ) const
inline

Definition at line 89 of file stgstrms.hxx.

References m_nPage.

Referenced by StgFAT::GetPhysPage(), and StgFAT::InitNew().

◆ GetPages()

sal_Int32 StgStrm::GetPages ( ) const
inline

Definition at line 90 of file stgstrms.hxx.

References m_nPageSize, and m_nSize.

Referenced by StgIo::CommitAll(), and SetSize().

◆ GetPos()

sal_Int32 StgStrm::GetPos ( ) const
inline

◆ GetSize()

sal_Int32 StgStrm::GetSize ( ) const
inline

◆ GetStart()

sal_Int32 StgStrm::GetStart ( ) const
inline

Definition at line 87 of file stgstrms.hxx.

References m_nStart.

Referenced by StgIo::CommitAll().

◆ IsSmallStrm()

virtual bool StgStrm::IsSmallStrm ( ) const
inlinevirtual

Reimplemented in StgSmallStrm.

Definition at line 97 of file stgstrms.hxx.

Referenced by StgDirEntry::SetSize().

◆ Pos2Page()

bool StgStrm::Pos2Page ( sal_Int32  nBytePos)
virtual

◆ Read()

virtual sal_Int32 StgStrm::Read ( void *  ,
sal_Int32   
)
inlinevirtual

Reimplemented in StgDataStrm, and StgSmallStrm.

Definition at line 95 of file stgstrms.hxx.

Referenced by StgDirEntry::Read(), StgSmallStrm::Read(), StgDirEntry::SetSize(), and StgDirEntry::Strm2Tmp().

◆ scanBuildPageChainCache()

sal_Int32 StgStrm::scanBuildPageChainCache ( )
protected

◆ SetEntry()

void StgStrm::SetEntry ( StgDirEntry r)

◆ SetPos()

void StgStrm::SetPos ( sal_Int32  nPos,
bool  bValid 
)
inlineprotected

◆ SetSize()

bool StgStrm::SetSize ( sal_Int32  nBytes)
virtual

◆ Write()

virtual sal_Int32 StgStrm::Write ( const void *  ,
sal_Int32   
)
inlinevirtual

Reimplemented in StgDataStrm, and StgSmallStrm.

Definition at line 96 of file stgstrms.hxx.

Referenced by StgDirEntry::SetSize(), StgDirEntry::Write(), and StgSmallStrm::Write().

Member Data Documentation

◆ m_aPagesCache

std::vector<sal_Int32> StgStrm::m_aPagesCache
protected

◆ m_aUsedPageNumbers

o3tl::sorted_vector<sal_Int32> StgStrm::m_aUsedPageNumbers
protected

◆ m_bBytePosValid

bool StgStrm::m_bBytePosValid
private

Definition at line 67 of file stgstrms.hxx.

Referenced by Pos2Page(), and SetPos().

◆ m_nOffset

short StgStrm::m_nOffset
protected

◆ m_nPage

sal_Int32 StgStrm::m_nPage
protected

◆ m_nPageSize

short StgStrm::m_nPageSize
protected

◆ m_nPos

sal_Int32 StgStrm::m_nPos
private

Definition at line 66 of file stgstrms.hxx.

Referenced by GetPos(), Pos2Page(), and SetPos().

◆ m_nSize

sal_Int32 StgStrm::m_nSize
protected

◆ m_nStart

sal_Int32 StgStrm::m_nStart
protected

◆ m_pEntry

StgDirEntry* StgStrm::m_pEntry
protected

◆ m_pFat

std::unique_ptr<StgFAT> StgStrm::m_pFat
protected

◆ m_rIo

StgIo& StgStrm::m_rIo
protected

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