BSL v1.1.1 - 50.g42e5d9b
AMMOS Bundle Protocol Security Library (BSL)
Loading...
Searching...
No Matches
BSL_Variant_t Struct Reference

Represents a security option, parameter, or result within in an ASB. More...

#include <bsl/dynamic/Variant.h>

+ Collaboration diagram for BSL_Variant_t:

Data Fields

enum BSLB_Variant_Type_e _type
 Indicates how _val needs to be used.
 
union { 
 
   int64_t   as_int 
 Valid when _type is BSLB_VARIANT_TYPE_INT64. More...
 
   m_bstring_t   as_bytes 
 Valid when _type is BSLB_VARIANT_TYPE_BYTESTR or BSLB_VARIANT_TYPE_TEXTSTR or BSLB_VARIANT_TYPE_RAW. More...
 
_val 
 The value storage based on _type.
 

Detailed Description

Represents a security option, parameter, or result within in an ASB.

In an encoded ASB, these are tuples of (param-id, param-val)

Field Documentation

◆ _type

enum BSLB_Variant_Type_e BSL_Variant_t::_type

Indicates how _val needs to be used.

◆ [union]

union { ... } BSL_Variant_t::_val

The value storage based on _type.

◆ as_bytes

m_bstring_t BSL_Variant_t::as_bytes

◆ as_int

int64_t BSL_Variant_t::as_int

The documentation for this struct was generated from the following file: