Difference between revisions of "GetBlobSize"

From King Arthur's Gold Wiki
Jump to: navigation, search
(Created page with "<onlyinclude> Returns the number of CBlobs that are currently active. </onlyinclude> <syntaxhighlight lang="cpp">u32 getBlobsSize()</syntaxhighlight> Usage example: <syntaxh...")
 
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<onlyinclude>
 
<onlyinclude>
Returns the number of [[CBlob]]s that are currently active.
+
Returns the number of [[CBlob]]s that currently exist.
 
</onlyinclude>
 
</onlyinclude>
<syntaxhighlight lang="cpp">u32 getBlobsSize()</syntaxhighlight>
+
<syntaxhighlight lang="cpp">
 +
u32 getBlobsSize()
 +
</syntaxhighlight>
  
 
Usage example:
 
Usage example:
<syntaxhighlight lang="cpp">
+
<syntaxhighlight lang="cpp" highlight="3">
for ( i = 0; i < getBlobsSize(); i++ )
+
for ( int i = 0; i < getBlobsSize(); i++ )
 
{
 
{
   [[CBlob]]@ blob = [[getBlob]](i);
+
   CBlob@ blob = getBlob(i);
 
   // Do something to the blob
 
   // Do something to the blob
 
}
 
}

Latest revision as of 13:49, 28 August 2012

Returns the number of CBlobs that currently exist.

u32 getBlobsSize()

Usage example:

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