Difference between revisions of "Core.Terms.ByteFieldGetSize"

From emotive
Jump to navigation Jump to search
Line 3: Line 3:
 
{{ClassificationActivity | ByteFieldGetSize | Number of bytes in the ByteField | [[Term]] | [[Core|OTX Core library]] | [[ByteField operations]] | - | - }}
 
{{ClassificationActivity | ByteFieldGetSize | Number of bytes in the ByteField | [[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;">
 
IntegerTerm = ByteField.ByteFieldGetSize(ByteFieldTerm);
 
IntegerTerm = ByteField.ByteFieldGetSize(ByteFieldTerm);
Line 23: Line 23:
 
== Examples ==
 
== Examples ==
 
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
 
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
Integer result = ByteFieldGetSize(&12)
+
Integer result;
 +
result = ByteField.ByteFieldGetSize(&12);
 
//Returns result = 1
 
//Returns result = 1
 
</syntaxhighlight>
 
</syntaxhighlight>

Revision as of 04:37, 4 February 2015

Classification

Name ByteFieldGetSize
Short Description Number of bytes in the ByteField
Class Term
Extension OTX Core library
Group ByteField operations
Exceptions -
Checker Rules -
Standard Compliant Yes

OTL Syntax

IntegerTerm = ByteField.ByteFieldGetSize(ByteFieldTerm);

Description

ByteFieldGetSize is a term, which returns the number of bytes in the ByteField 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
Integer Return of the number of bytes of the operand

Properties

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

Examples

Integer result;
result = ByteField.ByteFieldGetSize(&12);
//Returns result = 1

See also

BitwiseAnd
BitwiseOr
BitwiseXor
BitwiseNot
SubByteField
GetBit