CFx SDK Documentation  2023 SP0
Public Types | Public Member Functions | List of all members
OdByteData Class Referenceabstract

#include <OleStorage.h>

Inheritance diagram for OdByteData:
OdRxObject OdRawByteData

Public Types

typedef OdUInt32 SizeType
 

Public Member Functions

 ODRX_DECLARE_MEMBERS (OdByteData)
 
virtual SizeType readAt (SizeType start, OdUInt8 *buffer, SizeType bufferSize) const =0
 
virtual SizeType writeAt (SizeType start, const OdUInt8 *buffer, SizeType bufferSize)=0
 
virtual SizeType size () const =0
 
virtual void resize (SizeType bufferSize)=0
 
virtual void flush ()=0
 
- 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
 

Additional Inherited Members

- Static Public Member Functions inherited from OdRxObject
static OdRxObjectPtr cast (const OdRxObject *pointer)
 
static OdRxClassdesc ()
 

Detailed Description

This class is the base class for custom classes that implement unsigned ByteData storage. Corresponding C++ library: TD_Db <group Other_Classes>

Definition at line 41 of file OleStorage.h.

Member Typedef Documentation

◆ SizeType

Definition at line 44 of file OleStorage.h.

Member Function Documentation

◆ flush()

virtual void OdByteData::flush ( )
pure virtual

Empties this ByteData object.

◆ ODRX_DECLARE_MEMBERS()

OdByteData::ODRX_DECLARE_MEMBERS ( OdByteData  )

◆ readAt()

virtual SizeType OdByteData::readAt ( SizeType  start,
OdUInt8 buffer,
SizeType  bufferSize 
) const
pure virtual

Copies the specified bytes from this ByteData object to the specified buffer.

Parameters
start[in] Starting position.
bufferSize[in] Number of bytes.
buffer[out] Receives the bytes.

◆ resize()

virtual void OdByteData::resize ( SizeType  bufferSize)
pure virtual

Resizes this ByteData object.

Parameters
bufferSize[in] Number of bytes.

◆ size()

virtual SizeType OdByteData::size ( ) const
pure virtual

Returns the number of bytes in this ByteData object.

◆ writeAt()

virtual SizeType OdByteData::writeAt ( SizeType  start,
const OdUInt8 buffer,
SizeType  bufferSize 
)
pure virtual

Copies the specified bytes from the specified buffer to this ByteData object.

bufferSize


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