Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
12.2
12.3
12.4
12.5
13.0
13.1
13.2
13.3
13.4
13.5
Statistic
FMM
Blog
Allocates an array parameter.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
CFunction | 10.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
Parameter | Description | Example |
---|---|---|
FunctionRef | The reference number for the function. | $func |
Index | The index for the parameter. Range is 0 to CFunction.ParameterCount-1. |
0 |
Type | The data type to use. | "f" |
Count | The number of elements to allocate. | 4 |
Returns OK or error.
Type | Name | Size | Description |
B | BOOL | 4 | Boolean value |
c | char | 1 | signed 8 bit value |
C | unsigned char | 1 | unsigned 8 bit value |
s | short | 2 | signed 16 bit value |
S | unsigned short | 2 | unsigned 16 bit value |
i | int | 4 | signed 32 bit value |
I | unsigned int | 4 | unsigned 32 bit value |
j | long | 4 or 8 | for Windows 32-bit value, for MacOS and Linux 64-bit value |
J | unsigned long | 4 or 8 | for Windows 32-bit value, for MacOS and Linux 64-bit value |
l | long long | 8 | signed 64 bit value |
L | unsigned long long | 8 | unsigned 64 bit value |
f | float | 4 | floating point number in 32-bit size |
d | double | 8 | floating point number in 64-bit size |
p | pointer | 4 or 8 | pointer in 32 or 64-bit. |
Allocates 36 floating point values for first parameter:
MBS( "CFunction.AllocateArray"; $function; 0; "f"; 36 )
This function checks for a license.
Created 25th April 2020, last changed 25th April 2020