FBX C++ API Reference
All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FbxBlob Class Reference

#include <fbxpropertytypes.h>

Class Description

FBX SDK blob class.

Uninitialized data of a specified size, to be filled by the user.

Examples:
ProceduralTexture/main.cxx.

Definition at line 233 of file fbxpropertytypes.h.

Public Member Functions

void * Modify ()
 Make a copy if the reference count > 1 (i.e. if the buffer is shared). More...
 
void Clear ()
 Free the memory if this blob is the last one to hold it. More...
 

Protected Attributes

int * mRefCount
 
void * mData
 
int mSize
 

Constructors and Destructor

 FbxBlob ()
 Constructor. Set attributes to 0. More...
 
 FbxBlob (int pSize)
 Constructor. More...
 
 FbxBlob (const FbxBlob &pRHS)
 Copy constructor. More...
 
 FbxBlob (const void *pData, int pSize)
 Constructor. More...
 
 ~FbxBlob ()
 Destructor. More...
 

Assignment.

FbxBloboperator= (const FbxBlob &pValue)
 Share the buffer of the specified blob with this blob. More...
 
void Assign (const void *pData, int pSize)
 Copy the data in the buffer. More...
 

Boolean operation

bool operator== (const FbxBlob &pRHS) const
 Equality operator. More...
 
bool operator!= (const FbxBlob &pRHS) const
 Inequality operator. More...
 

Access

const void * Access () const
 Retrieve the buffer pointer. More...
 
int Size () const
 Retrieve the buffer size. More...
 

Constructor & Destructor Documentation

◆ FbxBlob() [1/4]

FbxBlob ( )

Constructor. Set attributes to 0.

◆ FbxBlob() [2/4]

FbxBlob ( int  pSize)

Constructor.

Construct a buffer with uninitialized data of a specified size, to be filled by the user.

Parameters
pSizeBuffer size.

◆ FbxBlob() [3/4]

FbxBlob ( const FbxBlob pRHS)

Copy constructor.

Parameters
pRHSThe blob to be copied to this blob.

◆ FbxBlob() [4/4]

FbxBlob ( const void *  pData,
int  pSize 
)

Constructor.

Parameters
pDataThe data to be filled in the buffer.
pSizeBuffer size.

◆ ~FbxBlob()

~FbxBlob ( )

Destructor.

Member Function Documentation

◆ operator=()

FbxBlob& operator= ( const FbxBlob pValue)

Share the buffer of the specified blob with this blob.

Parameters
pValueThe blob whose buffer is shared with this blob.
Returns
This blob.

◆ Assign()

void Assign ( const void *  pData,
int  pSize 
)

Copy the data in the buffer.

Parameters
pDataThe buffer to be copied data from.
pSizeBuffer size.
Examples:
ProceduralTexture/main.cxx.

◆ operator==()

bool operator== ( const FbxBlob pRHS) const

Equality operator.

Parameters
pRHSThe blob to be compared with this blob.
Returns
True, if the two blobs are equal, false otherwise.

◆ operator!=()

bool operator!= ( const FbxBlob pRHS) const

Inequality operator.

Parameters
pRHSThe blob to be compared with this blob.
Returns
True, if the two blobs are unequal, otherwise false.

◆ Modify()

void* Modify ( )

Make a copy if the reference count > 1 (i.e. if the buffer is shared).

◆ Access()

const void* Access ( ) const

Retrieve the buffer pointer.

Returns
The buffer pointer.
Examples:
ProceduralTexture/main.cxx.

◆ Size()

int Size ( ) const

Retrieve the buffer size.

Returns
The buffer size.
Examples:
ProceduralTexture/main.cxx.

◆ Clear()

void Clear ( )

Free the memory if this blob is the last one to hold it.

Member Data Documentation

◆ mRefCount

int* mRefCount
protected

Definition at line 320 of file fbxpropertytypes.h.

◆ mData

void* mData
protected

Definition at line 321 of file fbxpropertytypes.h.

◆ mSize

int mSize
protected

Definition at line 322 of file fbxpropertytypes.h.


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