CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
Classes | Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
OdMemoryStreamImpl< TBase > Class Template Reference

#include <MemoryStreamImpl.h>

Inheritance diagram for OdMemoryStreamImpl< TBase >:
OdMemoryStreamDummyBase

Public Member Functions

 OdMemoryStreamImpl (OdUInt32 nPageDataSize=0x2000)
 
OdUInt32 pageDataSize () const
 
void setPageDataSize (OdUInt32 nPageSize)
 
void reserve (OdUInt64 nSize)
 
OdUInt64 length ()
 
OdUInt64 seek (OdInt64 offset, OdDb::FilerSeekType whence)
 
const voidpageAlignedAddress (OdUInt32 nLen)
 
OdUInt64 tell ()
 
bool isEof ()
 
OdUInt8 getByte ()
 
void getBytes (void *buffer, OdUInt32 nLen)
 
void putByte (OdUInt8 val)
 
void putBytes (const void *buffer, OdUInt32 nLen)
 
void rewind ()
 
void truncate ()
 
 ~OdMemoryStreamImpl ()
 

Protected Member Functions

OdUInt64 allocated () const
 
OdUInt64 curPageNo () const
 
OdUInt32 posInCurPage () const
 
OdUInt32 leftInCurPage () const
 
void addPage ()
 
void seekNextPage (bool bCreateNew=false)
 
void seekPrevPage ()
 
OdUInt8currPos ()
 
const OdUInt8currPos () const
 

Protected Attributes

OdUInt64 m_nCurPos
 
OdUInt64 m_nEndPos
 
OdUInt32 m_nPageDataSize
 

Friends

class OdMemoryStream
 

Detailed Description

template<class TBase = OdMemoryStreamDummyBase>
class OdMemoryStreamImpl< TBase >

{group:Other_Classes}

Definition at line 52 of file MemoryStreamImpl.h.

Constructor & Destructor Documentation

◆ OdMemoryStreamImpl()

template<class TBase = OdMemoryStreamDummyBase>
OdMemoryStreamImpl< TBase >::OdMemoryStreamImpl ( OdUInt32  nPageDataSize = 0x2000)
inline

Definition at line 92 of file MemoryStreamImpl.h.

◆ ~OdMemoryStreamImpl()

template<class TBase >
OdMemoryStreamImpl< TBase >::~OdMemoryStreamImpl

{group:Other_Classes}

Definition at line 180 of file MemoryStreamImpl.h.

Member Function Documentation

◆ addPage()

template<class TBase >
void OdMemoryStreamImpl< TBase >::addPage
protected

Definition at line 193 of file MemoryStreamImpl.h.

◆ allocated()

template<class TBase = OdMemoryStreamDummyBase>
OdUInt64 OdMemoryStreamImpl< TBase >::allocated ( ) const
inlineprotected

Definition at line 72 of file MemoryStreamImpl.h.

◆ curPageNo()

template<class TBase = OdMemoryStreamDummyBase>
OdUInt64 OdMemoryStreamImpl< TBase >::curPageNo ( ) const
inlineprotected

Definition at line 73 of file MemoryStreamImpl.h.

◆ currPos() [1/2]

template<class TBase = OdMemoryStreamDummyBase>
OdUInt8 * OdMemoryStreamImpl< TBase >::currPos ( )
inlineprotected

Definition at line 89 of file MemoryStreamImpl.h.

◆ currPos() [2/2]

template<class TBase = OdMemoryStreamDummyBase>
const OdUInt8 * OdMemoryStreamImpl< TBase >::currPos ( ) const
inlineprotected

Definition at line 90 of file MemoryStreamImpl.h.

◆ getByte()

template<class TBase >
OdUInt8 OdMemoryStreamImpl< TBase >::getByte

Definition at line 347 of file MemoryStreamImpl.h.

◆ getBytes()

template<class TBase >
void OdMemoryStreamImpl< TBase >::getBytes ( void buffer,
OdUInt32  nLen 
)

Definition at line 366 of file MemoryStreamImpl.h.

◆ isEof()

template<class TBase = OdMemoryStreamDummyBase>
bool OdMemoryStreamImpl< TBase >::isEof ( )
inline

Definition at line 131 of file MemoryStreamImpl.h.

◆ leftInCurPage()

template<class TBase = OdMemoryStreamDummyBase>
OdUInt32 OdMemoryStreamImpl< TBase >::leftInCurPage ( ) const
inlineprotected

Definition at line 75 of file MemoryStreamImpl.h.

◆ length()

template<class TBase = OdMemoryStreamDummyBase>
OdUInt64 OdMemoryStreamImpl< TBase >::length ( )
inline

Definition at line 117 of file MemoryStreamImpl.h.

◆ pageAlignedAddress()

template<class TBase >
const void * OdMemoryStreamImpl< TBase >::pageAlignedAddress ( OdUInt32  nLen)

Definition at line 337 of file MemoryStreamImpl.h.

◆ pageDataSize()

template<class TBase = OdMemoryStreamDummyBase>
OdUInt32 OdMemoryStreamImpl< TBase >::pageDataSize ( ) const
inline

Definition at line 105 of file MemoryStreamImpl.h.

◆ posInCurPage()

template<class TBase = OdMemoryStreamDummyBase>
OdUInt32 OdMemoryStreamImpl< TBase >::posInCurPage ( ) const
inlineprotected

Definition at line 74 of file MemoryStreamImpl.h.

◆ putByte()

template<class TBase >
void OdMemoryStreamImpl< TBase >::putByte ( OdUInt8  val)

Definition at line 401 of file MemoryStreamImpl.h.

◆ putBytes()

template<class TBase >
void OdMemoryStreamImpl< TBase >::putBytes ( const void buffer,
OdUInt32  nLen 
)

Definition at line 416 of file MemoryStreamImpl.h.

◆ reserve()

template<class TBase = OdMemoryStreamDummyBase>
void OdMemoryStreamImpl< TBase >::reserve ( OdUInt64  nSize)
inline

Definition at line 109 of file MemoryStreamImpl.h.

◆ rewind()

template<class TBase = OdMemoryStreamDummyBase>
void OdMemoryStreamImpl< TBase >::rewind ( )
inline

Definition at line 147 of file MemoryStreamImpl.h.

◆ seek()

template<class TBase >
OdUInt64 OdMemoryStreamImpl< TBase >::seek ( OdInt64  offset,
OdDb::FilerSeekType  whence 
)

Definition at line 239 of file MemoryStreamImpl.h.

◆ seekNextPage()

template<class TBase >
void OdMemoryStreamImpl< TBase >::seekNextPage ( bool  bCreateNew = false)
protected

Definition at line 217 of file MemoryStreamImpl.h.

◆ seekPrevPage()

template<class TBase = OdMemoryStreamDummyBase>
void OdMemoryStreamImpl< TBase >::seekPrevPage ( )
inlineprotected

Definition at line 78 of file MemoryStreamImpl.h.

◆ setPageDataSize()

template<class TBase = OdMemoryStreamDummyBase>
void OdMemoryStreamImpl< TBase >::setPageDataSize ( OdUInt32  nPageSize)
inline

Definition at line 107 of file MemoryStreamImpl.h.

◆ tell()

template<class TBase = OdMemoryStreamDummyBase>
OdUInt64 OdMemoryStreamImpl< TBase >::tell ( )
inline

Definition at line 126 of file MemoryStreamImpl.h.

◆ truncate()

template<class TBase = OdMemoryStreamDummyBase>
void OdMemoryStreamImpl< TBase >::truncate ( )
inline

Definition at line 153 of file MemoryStreamImpl.h.

Friends And Related Function Documentation

◆ OdMemoryStream

template<class TBase = OdMemoryStreamDummyBase>
friend class OdMemoryStream
friend

Definition at line 54 of file MemoryStreamImpl.h.

Member Data Documentation

◆ m_nCurPos

template<class TBase = OdMemoryStreamDummyBase>
OdUInt64 OdMemoryStreamImpl< TBase >::m_nCurPos
protected

Definition at line 68 of file MemoryStreamImpl.h.

◆ m_nEndPos

template<class TBase = OdMemoryStreamDummyBase>
OdUInt64 OdMemoryStreamImpl< TBase >::m_nEndPos
protected

Definition at line 69 of file MemoryStreamImpl.h.

◆ m_nPageDataSize

template<class TBase = OdMemoryStreamDummyBase>
OdUInt32 OdMemoryStreamImpl< TBase >::m_nPageDataSize
protected

Definition at line 70 of file MemoryStreamImpl.h.


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