tibemsData

Type

Purpose

Union type that covers all possible datatypes in atibemsMsgField struct.

C Declaration

typedef union {
    tibems_bool boolValue;
    tibems_byte byteValue;
    tibems_short shortValue;
    tibems_wchar wcharValue;
    tibems_int intValue;
    tibems_long longValue;
    tibems_float floatValue;
    tibems_double doubleValue;
    char* utf8Value;
    void* bytesValue;
    struct __tibemsMsg* msgValue;
    void* arrayValue;
} tibemsData;

COBOL

05  MsgFld-data.
   10  MFD                 PIC  X(8).
   10  MFD-boolValue
       redefines MFD       PIC S9(8) BINARY.
   10  MFD-byteValue
       redefines MFD       PIC  X(1) USAGE DISPLAY.
   10  MFD-shortValue
       redefines MFD       PIC S9(4) BINARY.
   10  MFD-wcharValue
       redefines MFD       PIC  9(4) COMPUTATIONAL-5.
   10  MFD-intValue
       redefines MFD       PIC S9(9) BINARY.
   10  MFD-longValue
       redefines MFD       PIC S9(18) COMPUTATIONAL-5.
   10  MFD-floatValue
       redefines MFD       USAGE COMPUTATIONAL-1.
   10  MFD-doubleValue
       redefines MFD       USAGE COMPUTATIONAL-2.
   10  MFD-utf8Value
       redefines MFD       USAGE POINTER.
   10  MFD-bytesValue
       redefines MFD       USAGE POINTER.
   10  MFD-msgValue
       redefines MFD       USAGE POINTER.
   10  MFD-arrayValue
       redefines MFD       USAGE POINTER.

See Also

tibemsMsgField