pn_atom_t Struct Reference
[Data]

A descriminated union that holds any scalar AMQP value. More...

#include <codec.h>

Data Fields

pn_type_t type
 Indicates the type of value the atom is currently pointing to.
union {
   bool   as_bool
 Valid when type is PN_BOOL.
   uint8_t   as_ubyte
 Valid when type is PN_UBYTE.
   int8_t   as_byte
 Valid when type is PN_BYTE.
   uint16_t   as_ushort
 Valid when type is PN_USHORT.
   int16_t   as_short
 Valid when type is PN_SHORT.
   uint32_t   as_uint
 Valid when type is PN_UINT.
   int32_t   as_int
 Valid when type is PN_INT.
   pn_char_t   as_char
 Valid when type is PN_CHAR.
   uint64_t   as_ulong
 Valid when type is PN_ULONG.
   int64_t   as_long
 Valid when type is PN_LONG.
   pn_timestamp_t   as_timestamp
 Valid when type is PN_TIMESTAMP.
   float   as_float
 Valid when type is PN_FLOAT.
   double   as_double
 Valid when type is PN_DOUBLE.
   pn_decimal32_t   as_decimal32
 Valid when type is PN_DECIMAL32.
   pn_decimal64_t   as_decimal64
 Valid when type is PN_DECIMAL64.
   pn_decimal128_t   as_decimal128
 Valid when type is PN_DECIMAL128.
   pn_uuid_t   as_uuid
 Valid when type is PN_UUID.
   pn_bytes_t   as_bytes
 Valid when type is PN_BINARY or PN_STRING or PN_SYMBOL.
u

Detailed Description

A descriminated union that holds any scalar AMQP value.

The type field indicates the AMQP type of the value, and the union may be used to access the value for a given type.


Field Documentation

Valid when type is PN_BOOL.

Valid when type is PN_BYTE.

Valid when type is PN_BINARY or PN_STRING or PN_SYMBOL.

When the type is PN_STRING the field will point to utf8 encoded unicode. When the type is PN_SYMBOL, the field will point to 7-bit ASCII. In the latter two cases, the bytes pointed to are *not* necessarily null terminated.

Valid when type is PN_CHAR.

Valid when type is PN_DECIMAL128.

Valid when type is PN_DECIMAL32.

Valid when type is PN_DECIMAL64.

Valid when type is PN_DOUBLE.

Valid when type is PN_FLOAT.

Valid when type is PN_INT.

Valid when type is PN_LONG.

Valid when type is PN_SHORT.

Valid when type is PN_TIMESTAMP.

Valid when type is PN_UBYTE.

Valid when type is PN_UINT.

Valid when type is PN_ULONG.

Valid when type is PN_USHORT.

Valid when type is PN_UUID.

Indicates the type of value the atom is currently pointing to.

See pn_type_t for details on AMQP types.

union { ... } pn_atom_t::u

The documentation for this struct was generated from the following file:
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines

Generated on 23 Sep 2016 for proton by  doxygen 1.6.1