CFx SDK Documentation  2020SP3
Public Member Functions | Static Public Member Functions | List of all members
OdFlatMemStreamManaged Class Reference

#include <FlatMemStream.h>

Inheritance diagram for OdFlatMemStreamManaged:
OdFlatMemStream OdFlatMemStreamImpl< OdStreamBuf > OdStreamPosImpl< OdStreamBuf > OdStreamBuf OdRxObject

Public Member Functions

 ~OdFlatMemStreamManaged ()
 
- Public Member Functions inherited from OdFlatMemStream
 ODRX_DECLARE_MEMBERS (OdFlatMemStream)
 
void copyDataTo (OdStreamBuf *pDestination, OdUInt64 sourceStart, OdUInt64 sourceEnd)
 
- Public Member Functions inherited from OdFlatMemStreamImpl< OdStreamBuf >
OdUInt8data ()
 
 OdFlatMemStreamImpl ()
 
 OdFlatMemStreamImpl (void *buffer, OdUInt64 numBytes, OdUInt64 nCurPos)
 
void init (void *buffer, OdUInt64 numBytes, OdUInt64 curPosition=0)
 
OdUInt8 getByte ()
 
void getBytes (void *buffer, OdUInt32 numBytes)
 
void putByte (OdUInt8 value)
 
void putBytes (const void *buffer, OdUInt32 numBytes)
 
- Public Member Functions inherited from OdStreamPosImpl< OdStreamBuf >
OdUInt64 left ()
 
OdUInt64 length ()
 
OdUInt64 tell ()
 
OdUInt64 seek (OdInt64 offset, OdDb::FilerSeekType seekType)
 
bool isEof ()
 
- Public Member Functions inherited from OdStreamBuf
 ODRX_DECLARE_MEMBERS (OdStreamBuf)
 
virtual OdString fileName ()
 
virtual void truncate ()
 
virtual void rewind ()
 
virtual OdUInt32 getShareMode ()
 
- Public Member Functions inherited from OdRxObject
 ODRX_HEAP_OPERATORS ()
 
 OdRxObject ()
 
virtual ~OdRxObject ()
 
virtual OdRxObjectqueryX (const OdRxClass *pClass) const
 
virtual OdRxObjectx (const OdRxClass *pClass) const
 
virtual OdRxClassisA () const
 
virtual void addRef ()=0
 
virtual void release ()=0
 
virtual long numRefs () const
 
bool isKindOf (const OdRxClass *pClass) const
 
virtual OdRxObjectPtr clone () const
 
virtual void copyFrom (const OdRxObject *pSource)
 
virtual OdRx::Ordering comparedTo (const OdRxObject *pOther) const
 
virtual bool isEqualTo (const OdRxObject *pOther) const
 

Static Public Member Functions

static OdFlatMemStreamPtr createNew (OdUInt64 numBytes)
 
- Static Public Member Functions inherited from OdFlatMemStream
static OdFlatMemStreamPtr createNew (void *buffer, OdUInt64 numBytes, OdUInt64 curPosition=0)
 
- Static Public Member Functions inherited from OdRxObject
static OdRxObjectPtr cast (const OdRxObject *pointer)
 
static OdRxClassdesc ()
 

Additional Inherited Members

- Protected Member Functions inherited from OdFlatMemStream
 OdFlatMemStream ()
 
- Protected Member Functions inherited from OdFlatMemStreamImpl< OdStreamBuf >
virtual void append (OdUInt64 numBytes)
 
- Protected Member Functions inherited from OdStreamBuf
 OdStreamBuf ()
 
- Protected Attributes inherited from OdFlatMemStreamImpl< OdStreamBuf >
voidm_pMemData
 
- Protected Attributes inherited from OdStreamPosImpl< OdStreamBuf >
OdUInt64 m_nEndPos
 
OdUInt64 m_nCurPos
 

Detailed Description

This class implements memory-resident stream buffer holding its own memory. Corresponding C++ library: TD_Root <group Other_Classes>

Definition at line 147 of file FlatMemStream.h.

Constructor & Destructor Documentation

◆ ~OdFlatMemStreamManaged()

OdFlatMemStreamManaged::~OdFlatMemStreamManaged ( )
inline

Definition at line 151 of file FlatMemStream.h.

Member Function Documentation

◆ createNew()

static OdFlatMemStreamPtr OdFlatMemStreamManaged::createNew ( OdUInt64  numBytes)
static

Creates a new FlatMemStream object, and returns a SmartPointer to the new object.

Parameters
numBytes[in] Number of bytes.
Remarks
Memory is allocated via odrxAlloc() and is freed via odrxFree() in destructor;

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