Extensions.Flash.GetNumberOfSegments
Jump to navigation
Jump to search
Contents
Classification
Name | GetNumberOfSegments |
Short Description | Specifies the number of data segments in a block |
Class | Term |
Extension | OTX Flash extension |
Group | Flash block related terms |
Exceptions | OutOfBoundsException |
Checker Rules | - |
Standard Compliant | Yes |
OTL Syntax
IntegerTerm = Flash.GetNumberOfSegments(FlashSessionTerm, IntegerTerm);
Description
The GetNumberOfSegments term specifies the number of data segments in a return block. If there are no segments, the return value is zero, otherwise a positive number will be.
Return Value
The Term returns the value, see table below.
![]()
In OTX, Terms are categorized according to its return data type!
Data Type | Description |
Integer | The number of data segments in a block. |
Properties
Name | Data Type | Class | Default | Cardinality | Description |
Session | FlashSession | Term | - | [1] | This element represents the FlashSession in which the block of interest resides. |
Block | Integer | Term | - | [1] | The number of the block from which the number of data segments to be accessed. |
OTL Examples
DiagCom.ComChannel ComChannel1;
List<String> List1;
Flash.FlashSession FlashSession1;
Integer Integer1;
ComChannel1 = DiagCom.GetComChannel("DiagnosticsCan_ECU_1", null, false);
List1 = Flash.GetListOfValidFlashSessions(@Directions:DOWNLOAD, ComChannel1, @Audiences:SUPPLIER);
FlashSession1 = Flash.GetFlashSession(List1[0]);
Integer1 = Flash.GetNumberOfSegments(FlashSession1, 1);
See also
GetNumberOfSegments
GetNumberOfOwnIdents
GetNumberOfSecurities
GetLogicalBlockID
GetCompressionEncryption
GetType
BlockIsValidForAudience