HDK
|
Class which holds temporary references to blobs. More...
#include <GA_AIFBlob.h>
Public Member Functions | |
BlobBuffer (GA_Attribute *attribute=NULL, const GA_AIFBlob *aif=NULL) | |
BlobBuffer (const BlobBuffer &src) | |
~BlobBuffer () | |
BlobBuffer & | operator= (const BlobBuffer &src) |
GA_Size | entries () const |
Return number of strings referenced in the string buffer. More... | |
GA_BlobIndex | append (const GA_BlobRef &blob) |
GA_BlobIndex | getBlobIndex (exint i) const |
GA_BlobRef | getBlob (exint i) const |
void | clear () |
Clear references to all strings contained in the buffer. More... | |
Class which holds temporary references to blobs.
In some cases, it's expedient to add multiple blobs to the attribute and then assign the handle values after the fact. This class is similar to the GA_AIFBlob::StringBuffer class.
Definition at line 96 of file GA_AIFBlob.h.
|
inline |
Definition at line 99 of file GA_AIFBlob.h.
|
inline |
Definition at line 105 of file GA_AIFBlob.h.
|
inline |
Definition at line 111 of file GA_AIFBlob.h.
GA_BlobIndex GA_AIFBlob::BlobBuffer::append | ( | const GA_BlobRef & | blob | ) |
Add a string to the attribute. Returns the handle of the string in the attribute (not the string's index in the buffer).
void GA_AIFBlob::BlobBuffer::clear | ( | ) |
Clear references to all strings contained in the buffer.
|
inline |
Return number of strings referenced in the string buffer.
Definition at line 130 of file GA_AIFBlob.h.
GA_BlobRef GA_AIFBlob::BlobBuffer::getBlob | ( | exint | i | ) | const |
Return a string handle from the buffer. The index refers to the buffer index (not the blob handle).
|
inline |
Return the string index from the buffer. The index refers to the buffer index (not the blob handle).
Definition at line 138 of file GA_AIFBlob.h.
|
inline |
Definition at line 116 of file GA_AIFBlob.h.