BIS fnc decodeFlags2: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(created page)
 
m (infobox to template)
Line 21: Line 21:
[1,0,1,1] = 13 call bis_fnc_decodeFlags2;
[1,0,1,1] = 13 call bis_fnc_decodeFlags2;
[1,0,1,1,0,0,0,0] = [13,8] call bis_fnc_decodeFlags2;
[1,0,1,1,0,0,0,0] = [13,8] call bis_fnc_decodeFlags2;
*/</pre>{{Informative|Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]]}} |Description=
*/</pre>{{placeholder}}<!-- Remove this after fill-in --> |Description=


|[] call [[BIS_fnc_decodeFlags2]]|Syntax=
|[] call [[BIS_fnc_decodeFlags2]]|Syntax=

Revision as of 15:27, 2 April 2019

Hover & click on the images for description

Description

Description:
/*
	Decodes a single scalar into array of unique binary flags (zeroes or onces). Max. number that can be decoded is 16777215 (= 2^24 - 1). An optional parameter can by supplied to resize the binary flags output to set ammount of binary values/bits.

	Syntax:
	-------
	_flags:array = _encodedFlags:scalar call bis_fnc_decodeFlags2;
	_flags:array = [_encodedFlags:scalar,_size:scalar] call bis_fnc_decodeFlags2;

	Example:
	--------
	[1,0,1,1] = 13 call bis_fnc_decodeFlags2;
	[1,0,1,1,0,0,0,0] = [13,8] call bis_fnc_decodeFlags2;
*/
Template:placeholder
Execution:
call
Groups:
Uncategorised

Syntax

Syntax:
[] call BIS_fnc_decodeFlags2
Parameters:
parameter: Datatype - (Optional, default defValue) description
Return Value:
Datatype - description

Examples

Example 1:

Additional Information

See also:
See also needed

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