Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
P6R::P6ASN1INTEGER Struct Reference

#include <p6asn1.h>

Public Attributes

P6UINT8 choice
 
union {
   P6INT16   int16
 
   P6INT32   int32
 
   P6INT64   int64
 
   P6INT8   int8
 
   P6UINT16   uInt16
 
   P6UINT32   uInt32
 
   P6UINT64   uInt64
 
   P6UINT8   uInt8
 
type
 

Detailed Description

Used in decoding functions, since we do not know the type of the integer until we look at its length and MSB.

The ASN.1 BER encoding uses twos-complement binary representation of an integer value. Thus the MSB will be a negative value.

* P6UINT8 choice; choice == 0 ERROR
* union:
* P6INT8 int8; choice == 1 {-128 .. 127}
* P6UINT8 uInt8; choice == 2 {0 .. 255}
* P6INT16 int16; choice == 3 {-32768 .. 32767}
* P6UINT16 uInt16; choice == 4 {0 .. 65535}
* P6INT32 int32; choice == 5 {-2147483648 .. 2147483647}
* P6UINT32 uInt32; choice == 6 {0 .. 4294967295}
* P6INT64 int64; choice == 7 {-9223372036854775808 .. 9223372036854775807}
* P6UINT64 uInt64; choice == 8 {0 .. 18446744073309551615}
*

Definition at line 80 of file p6asn1.h.


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