Core.Actions.ShiftRight

From emotive
Jump to navigation Jump to search

Classification

Name ShiftRight
Short Description Right shift the bits in the ByteField
Class Action
Extension OTX Core library
Group ByteFieldModifiers related actions
Exceptions OutOfBoundsException
Checker Rules -
Standard Compliant Yes

OTL Syntax

ByteField.ShiftRight(ByteFieldVariable, IntegerTerm);

Description

The OTX ShiftRight activity right shifts the bits in a ByteField. The most significant positions bits are filled in with zeros.

Icons Note.png The activity has no effect on empty ByteFields.

Properties

Name Data Type Class Default Cardinality Description
ByteField ByteField Variable - [1] Variable of type ByteField which bits are shifted to the right to the number of digits (position)
Position Integer Term - [1] Number of digits that the bits in the ByteField be moved

OTL Examples

Integer Positions1 = 0;
ByteField ByteField1 = &00FF;

ByteField.ShiftRight(ByteField1, Positions1);

See also

Assignment
ProcedureCall
ShiftLeft
SetBit
ReplaceSubByteField
AppendByteField
ListConcatenate
ListAppendItems
ListInsertItems
ListRemoveItems
ListClear
MapUnion
MapPutItems
MapRemoveItems
MapClear