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

#include <stgstrms.hxx>

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

Public Member Functions

 StgDataStrm (StgIo &, sal_Int32 nBgn, sal_Int32 nLen=-1)
 
 StgDataStrm (StgIo &, StgDirEntry &)
 
void * GetPtr (sal_Int32 nPos, bool bDirty)
 
void SetIncrement (short n)
 
virtual bool SetSize (sal_Int32) override
 
virtual sal_Int32 Read (void *, sal_Int32) override
 
virtual sal_Int32 Write (const void *, sal_Int32) override
 
- 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

void Init (sal_Int32 nBgn, sal_Int32 nLen)
 

Private Attributes

short m_nIncr
 

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 117 of file stgstrms.hxx.

Constructor & Destructor Documentation

◆ StgDataStrm() [1/2]

StgDataStrm::StgDataStrm ( StgIo r,
sal_Int32  nBgn,
sal_Int32  nLen = -1 
)

Definition at line 833 of file stgstrms.cxx.

References Init().

◆ StgDataStrm() [2/2]

StgDataStrm::StgDataStrm ( StgIo r,
StgDirEntry p 
)

Definition at line 838 of file stgstrms.cxx.

References Init(), StgStrm::m_pEntry, p, and STG_DATA.

Member Function Documentation

◆ GetPtr()

void * StgDataStrm::GetPtr ( sal_Int32  nPos,
bool  bDirty 
)

◆ Init()

void StgDataStrm::Init ( sal_Int32  nBgn,
sal_Int32  nLen 
)
private

◆ Read()

sal_Int32 StgDataStrm::Read ( void *  pBuf,
sal_Int32  n 
)
overridevirtual

◆ SetIncrement()

void StgDataStrm::SetIncrement ( short  n)
inline

Definition at line 125 of file stgstrms.hxx.

References m_nIncr, and n.

Referenced by StgIo::SetupStreams().

◆ SetSize()

bool StgDataStrm::SetSize ( sal_Int32  nBytes)
overridevirtual

◆ Write()

sal_Int32 StgDataStrm::Write ( const void *  pBuf,
sal_Int32  n 
)
overridevirtual

Member Data Documentation

◆ m_nIncr

short StgDataStrm::m_nIncr
private

Definition at line 119 of file stgstrms.hxx.

Referenced by Init(), SetIncrement(), and SetSize().


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