Asn1XerUtil Class Reference
Static Public Member Functions | |
static void | EncodeReal (Asn1XerEncoder buffer, double value, System.String elemName) |
static System.String | NormalizedRealValueToString (double value, bool isXer) |
Detailed Description
This class contains some general purpose static utility functions for XER encoding or decoding.
Member Function Documentation
static void EncodeReal | ( | Asn1XerEncoder | buffer, | |
double | value, | |||
System.String | elemName | |||
) | [static] |
This method encodes an ASN.1 real value using the XML encoding rules (XER).
- Parameters:
-
buffer Encode message buffer object value Value to be encoded. elemName Element name
static System.String NormalizedRealValueToString | ( | double | value, | |
bool | isXer | |||
) | [static] |
This method will return a string representation of the normalized REAL value. The output format is value format [+|-]X.XXXXE[-]XXX as defined in X.693.
- Parameters:
-
value value to be normalized and stringified. isXer true, if this value is being encoded for XER.
- Returns:
- Stringified representation of the value