OpenTTCN/2.56.0/ANSI C SDK library reference/TCI-CD/tciDecode

From OpenTTCN

Jump to: navigation, search

tciDecode

The tciDecode function is called in the background by the library to request decoding either of encoded frame received directly from the SUT, or of some internal encoding generated by the previous stage of the user-implemented adapter processing subsystem.

TciValue tciDecode(
    BinaryString message,
    TciType decHypothesis);

Parameters

message

   

Encoded frame received from the SUT or internally generated encoding to be decoded.

decHypothesis

   

Expected type of the frame or internally generated encoding deduced by the library, or 0 if the library has no assumptions concerning message parameter type.

Return values

Returns the result of decoding in the form of TTCN-3 abstract value, or 0 if decoding failed.

Remarks

It is recommended to initialize result variable with 0 already at the time of result variable declaration using C variable initializer notation. Here is an example of how this can be done:

TciValue result = 0;

If decHypothesis is not 0, then this function shall return value of type specified by decHypothesis. If value of such type cannot be consistently returned, then this function shall return 0.

Requirements

Header

<tci/tci.h>

Library

openttcn-tsa-mt.lib openttcn-tcd-mt.lib

Compatibility

ETSI ES 201 873-6 (TCI), OpenTTCN ANSI C SDK 2.x and higher

See also

otSetDecoder

Views
Personal tools