Difference between revisions of "Extensions.Flash.GetCompressionEncryption"

From emotive
Jump to navigation Jump to search
Line 5: Line 5:
 
== OTL Syntax ==
 
== OTL Syntax ==
 
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
 
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
/// Local Declarations
+
StringTerm Flash.GetCompressionEncryption(FlashSessionTerm session, NumericTerm block);
String StringVariable = "";
 
/// Flow
 
StringVariable = Flash.GetCompressionEncryption(FlashSessionTerm, NumericTerm);
 
 
</syntaxhighlight>
 
</syntaxhighlight>
  

Revision as of 05:48, 5 November 2018

Classification

Name GetCompressionEncryption
Short Description Gets the compression and encryption information of a block
Class Term
Extension OTX Flash extension
Group Flash block related terms
Exceptions OutOfBoundsException
Checker Rules -
Standard Compliant Yes

OTL Syntax

StringTerm Flash.GetCompressionEncryption(FlashSessionTerm session, NumericTerm block);

Description

The GetCompressionEncryption term returns the compression and encryption information of a block (e.g. AES encryption, LZSS compression, etc.).

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
String The compression and encryption information of a block.

Properties

Name Data Type Class Default Cardinality Description
Session FlashSession Term - [1] This element represents the FlashSession in which the block resides.
Block Numeric Term - [1] This element represents the block number. Float values shall be truncated.

OTL Examples

/// Local Declarations

DiagCom.ComChannel ComChannel1;
Flash.FlashSession FlashSession1;
List<String> List1;
String String1 = "";

/// Flow

ComChannel1 = DiagCom.GetComChannel("SCHEINWERFER", "SCHEINWERFER_1", false);
List1 = Flash.GetListOfValidFlashSessions(ComChannel1, @Audience:SUPPLIER, @Directions:DOWNLOAD);
FlashSession1 = Flash.GetFlashSession(List1[2]);
String1 = Flash.GetCompressionEncryption(FlashSession1, 1);

See also

GetNumberOfSegments
GetNumberOfOwnIdents
GetNumberOfSecurities
GetLogicalBlockID
GetType
BlockIsValidForAudience
GetListOfValidFlashSessions
GetFlashSession
GetComChannel