OTX Reference  
OpenTestSystem.Otx.Core.Terms.SubByteField Class Reference

Returns part of ByteField More...

Inheritance diagram for OpenTestSystem.Otx.Core.Terms.SubByteField:
Inheritance graph

Public Attributes

ByteFieldTerm byteField
 Operand of type ByteField. More...
 
NumericTerm count
 Describes a amount of list items. More...
 
NumericTerm index
 Describes a position in a list. The first item in a list has the index value 0. More...
 
- Public Attributes inherited from OpenTestSystem.Otx.Core.Terms.Term
MetaData metaData
 Store additional More...
 

Detailed Description

Returns part of ByteField

SubByteField is a term which returns a certain number(Count) of Bytes from the position (Index) of a ByteField.

Exceptions
Exceptions.OutOfBoundsExceptionIt is thrown if the index is not within the range [0,n-1], where n is the size of the ByteField.
Syntax
ByteFieldTerm = ByteField.SubByteField(ByteFieldTerm, IntegerTerm, IntegerTerm);
Examples
// Local Declarations
ByteField result;
//Returns result = &34
result = ByteField.SubByteField(&1234, 1, 1);

Member Data Documentation

◆ byteField

ByteFieldTerm OpenTestSystem.Otx.Core.Terms.SubByteField.byteField

Operand of type ByteField.

◆ count

NumericTerm OpenTestSystem.Otx.Core.Terms.SubByteField.count

Describes a amount of list items.

◆ index

NumericTerm OpenTestSystem.Otx.Core.Terms.SubByteField.index

Describes a position in a list. The first item in a list has the index value 0.