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

#include <FlatMemStream.h>

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

Public Member Functions

 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 (void *buffer, OdUInt64 numBytes, OdUInt64 curPosition=0)
 
- Static Public Member Functions inherited from OdRxObject
static OdRxObjectPtr cast (const OdRxObject *pointer)
 
static OdRxClassdesc ()
 

Protected Member Functions

 OdFlatMemStream ()
 
- Protected Member Functions inherited from OdFlatMemStreamImpl< OdStreamBuf >
virtual void append (OdUInt64 numBytes)
 
- Protected Member Functions inherited from OdStreamBuf
 OdStreamBuf ()
 

Additional Inherited Members

- 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 I/O objects. Corresponding C++ library: TD_Root <group Other_Classes>

Definition at line 124 of file FlatMemStream.h.

Constructor & Destructor Documentation

◆ OdFlatMemStream()

OdFlatMemStream::OdFlatMemStream ( )
inlineprotected

Definition at line 127 of file FlatMemStream.h.

Member Function Documentation

◆ copyDataTo()

void OdFlatMemStream::copyDataTo ( OdStreamBuf pDestination,
OdUInt64  sourceStart,
OdUInt64  sourceEnd 
)
virtual

Copies the specified bytes from this StreamBuf object to the specified StreamBuf object.

Parameters
pDestination[in] Pointer to the StreamBuf object to receive the data.
sourceStart[in] Starting position of the file pointer of this StreamBuf object.
sourceEnd[in] Ending position of the file pointer of this StreamBuf object.
Remarks
Bytes are copied from sourceStart to sourceEnd inclusive.

Reimplemented from OdStreamBuf.

◆ createNew()

static OdFlatMemStreamPtr OdFlatMemStream::createNew ( void buffer,
OdUInt64  numBytes,
OdUInt64  curPosition = 0 
)
static

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

Parameters
buffer[in] Character buffer.
numBytes[in] Number of bytes.
curPosition[in] Initial position of the file pointer of the new object.

◆ ODRX_DECLARE_MEMBERS()

OdFlatMemStream::ODRX_DECLARE_MEMBERS ( OdFlatMemStream  )

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