Difference between revisions of "GetBlob"

From King Arthur's Gold Wiki
Jump to: navigation, search
Line 7: Line 7:
  
 
<syntaxhighlight lang="cpp">
 
<syntaxhighlight lang="cpp">
for ( i = 0; i < [[getBlobsSize]](); i++ )
+
for ( int i = 0; i < [[getBlobsSize]](); i++ )
 
{
 
{
 
   [[CBlob]]@ blob = getBlob(i);
 
   [[CBlob]]@ blob = getBlob(i);

Revision as of 22:09, 14 August 2012

Returns a reference to the CBlob with the given index in the list of currently active blobs.

[[CBlob]]@ getBlob(u32 index)

Probably not required unless looping through all blobs for some reason, in which case something like this might work:

for ( int i = 0; i < [[getBlobsSize]](); i++ )
{
  [[CBlob]]@ blob = getBlob(i);
  // Do something to the blob
}