Titan



decvalue


This built-in function decodes a value from a bitstring and cuts the consumed part from the bitstring.

Related keywords:


decvalue( inout bitstring_value, out decoded_value ) return integer;


Example:

type float MyFloat with { encode "RAW" }

var MyFloat f := 1.1;

var bitstring bs := encvalue(f);

var integer i := decvalue(bs, f);



BNF definition of decvalue