Core.Actions.ShiftLeft

From emotive
Jump to navigation Jump to search

Classification

Name ShiftLeft
Short Description Left 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.ShiftLeft(ByteFieldVariable, IntegerTerm);

Description

The OTX ShiftLeft activity left shifts the bits in a ByteField. The least 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 left 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.ShiftLeft(ByteField1, Positions1);

See also

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