callExtension: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
((some info))
Line 47: Line 47:
'''UTF-8''' = 2 byte/symbol of data (Such as Russian Cyryllic uses 16-bit encoding)
'''UTF-8''' = 2 byte/symbol of data (Such as Russian Cyryllic uses 16-bit encoding)
<br>
<br>
'''Digits''' = 1 byte/digit of data
'''Digits''' = 1 byte/digit of data (considered as ASCII symbol so is counted as 8 bit, not 1 bit of data).
</dd>
</dd>
</dl>
</dl>

Revision as of 05:28, 25 December 2016

Hover & click on the images for description

Description

Description:
Execute an extension function.
Groups:
Uncategorised

Syntax

Syntax:
extension callExtension functionWithArguments
Parameters:
extension: String
functionWithArguments: String
Return Value:
String

Examples

Example 1:
handle = "pipes" callExtension "openPipe(pipe)";

Additional Information

See also:
extensioncall

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note

Notes

Posted on December 25, 2016 - 05:12 (UTC)
Demellion
Note that callExtension arguments sent packet size cannot exceed 2^13 bytes (8192 bytes) no matter what extension is used. This might cause confusion for devs using database extensions on sending big data. Here's some table of data sizes:
ASCII = 1 byte/symbol of data (Arma uses 8-bit ASCII)
UTF-8 = 2 byte/symbol of data (Such as Russian Cyryllic uses 16-bit encoding)
Digits = 1 byte/digit of data (considered as ASCII symbol so is counted as 8 bit, not 1 bit of data).

Bottom Section