Difference between revisions of "Core.Terms.BitwiseNot"

From emotive
Jump to navigation Jump to search
(Created page with "Category:Core == Classification == {{ClassificationActivity | BitwiseNot | Bitwise NOT operation two ByteFields | Term | OTX Core library | ByteField operat...")
 
Line 3: Line 3:
 
{{ClassificationActivity | BitwiseNot | Bitwise NOT operation two ByteFields | [[Term]] | [[Core|OTX Core library]] | [[ByteField operations]] | - | - }}
 
{{ClassificationActivity | BitwiseNot | Bitwise NOT operation two ByteFields | [[Term]] | [[Core|OTX Core library]] | [[ByteField operations]] | - | - }}
  
== Pseudo-Code Syntax ==
+
== OTL Syntax ==
 
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
 
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
 
Value = ~ByteFieldTerm
 
Value = ~ByteFieldTerm
Line 21: Line 21:
 
|}
 
|}
  
== Examples ==
+
== OTL Examples ==
 
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
 
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
ByteField result = BitwiseNot(&12)
+
ByteField result;
 +
result = ~&12;
 
//Returns result = &ED
 
//Returns result = &ED
 
</syntaxhighlight>
 
</syntaxhighlight>

Revision as of 04:25, 4 February 2015

Classification

Name BitwiseNot
Short Description Bitwise NOT operation two ByteFields
Class Term
Extension OTX Core library
Group ByteField operations
Exceptions -
Checker Rules -
Standard Compliant Yes

OTL Syntax

Value = ~ByteFieldTerm

Description

BitwiseNot is a term, which returns the bitwise negation of ByteFields as a result.

Exclamation.png Important: Please keep in mind that this TermActivity in the form of an activity exists and no text can be entered. According to the respective ActionNode can further properties are added.

Return Value

The Term returns the value, see table below.

Icons Note.png In OTX, Terms are categorized according to its return data type!
Data Type Description
ByteField Return of the bitwise negation of the operand

Properties

Name Data Type Class Default Cardinality Description
ByteFieldTerm ByteField Term - [1] Operand

OTL Examples

ByteField result;
result = ~&12;
//Returns result = &ED

See also

BitwiseAnd
BitwiseOr
BitwiseXor
ByteFieldGetSize
SubByteField
GetBit