ConvertBytesToCount Data Member Function

Sets the array count to a value guaranteed to be large enough to store an array of N values. Will round up to the nearest positive <int32> if the byte count provided does not align with the number of bytes per element. For example, ints are 4 bytes each, so providing a value of 16 bytes ensures the array count is set to 4.

Prototype

int32 ConvertBytesToCount( int32 p_nCount )

Parameters

Parameter Type Parameter Name Documentation
int32p_nCountThe number of bytes you wish to convert to an array count.

Examples

Copy Text To Clipboard

None published. Please look for an example in the Scenome Scripting Language code base.