Core Function InvertBit
From Sputnik Wiki
(Difference between revisions)
(Created page with "<pre> InvertBit( <binary-array>, <index> ) </pre> === Description === Invert the bit at a given index. This will change a TRUE bit to FALSE and a FALSE bit to TRUE. === Param...") |
m (1 revision) |
Revision as of 21:41, 11 August 2014
InvertBit( <binary-array>, <index> )
Contents |
Description
Invert the bit at a given index.
This will change a TRUE bit to FALSE and a FALSE bit to TRUE.
Parameters
binary-array
The binary variable to use.
index
Index of the bit to invert (This is not the index of the bytes).
Return Value
Success: Returns true if the invert was a success
Failure: Returns false
Remarks
See SetBit( ) for Remarks.
Example
See SetBit( ) for Example.