|
|
 |
 |
|
Asn18BitCharString Class ReferenceInheritance diagram for Asn18BitCharString:
List of all members.
Detailed Description
This is an abstract base class for holding the ASN.1 8-bit character string types (IA5String, VisibleString, PrintableString, etc.).
|
Public Member Functions |
| virtual void | Decode (Asn1PerDecodeBuffer buffer, Asn1CharSet charSet, long lower, long upper) |
| virtual void | Decode (Asn1PerDecodeBuffer buffer, Asn1CharSet charSet) |
| override void | Decode (Asn1PerDecodeBuffer buffer) |
| virtual void | Encode (Asn1PerOutputStream outs, Asn1CharSet charSet, long lower, long upper) |
| virtual void | Encode (Asn1PerOutputStream outs, Asn1CharSet charSet) |
| override void | Encode (Asn1PerOutputStream outs) |
| virtual void | Encode (Asn1PerEncodeBuffer buffer, Asn1CharSet charSet, long lower, long upper) |
| virtual void | Encode (Asn1PerEncodeBuffer buffer, Asn1CharSet charSet) |
| override void | Encode (Asn1PerEncodeBuffer buffer) |
Public Attributes |
| const int | BITSPERCHAR_A = 8 |
| const int | BITSPERCHAR_U = 7 |
Protected Member Functions |
| internal | Asn18BitCharString (System.String data, short typeCode) |
| internal | Asn18BitCharString (short typeCode) |
Constructor & Destructor Documentation
|
|
The default constructor creates an empty string object.
- Parameters:
-
| typeCode | Universal ID code for ASN.1 character string |
|
|
|
This version of the constructor can be used to set the string mValue member variable to the given string.
- Parameters:
-
| data | Character string |
| typeCode | Universal ID code for ASN.1 character string |
|
Member Function Documentation
|
|
This overloaded version of the Decode method decodes an ASN.1 character string value in accordance with the packed encoding rules (PER). This version of the method assumes a size constraint is present and an optional permitted alphabet constraint.
The decoded result is stored in the public mValue member variable in the Asn1CharString base class.
- Parameters:
-
| buffer | Decode message buffer object |
| charSet | Object representing permitted alphabet constraint character set (optional) |
| lower | Effective size constraint lower bound |
| upper | Effective size constraint upper bound |
|
|
|
This method decodes an ASN.1 character string value in accordance with the packed encoding rules (PER). This version of the method assumes no size constraints but does allow a permitted alphabet character set to be specified. Decoded characters are assigned as-is to the output string. The decoded result is stored in the public mValue member variable in the Asn1CharString base class.
- Parameters:
-
| buffer | Decode message buffer object |
| charSet | Object representing permitted alphabet constraint character set (optional) |
|
|
|
This method decodes an ASN.1 character string value in accordance with the packed encoding rules (PER). This version of the method assumes no permitted alphabet or size constraints. Decoded characters are assigned as-is to the output string. The decoded result is stored in the public mValue member variable in the Asn1CharString base class.
- Parameters:
-
| buffer | Decode message buffer object |
Reimplemented from Asn1Type.
Reimplemented in Asn1NumericString, and Asn1Time. |
|
|
This overloaded version of the encode method encodes an ASN.1 character string value directly into the stream, in accordance with the packed encoding rules (PER). This version of the method assumes a size constraint is present and an optional permitted alphabet constraint.
The value to encode is stored in the public mValue member variable in the Asn1CharString base class.
Also throws any exception thrown by the Asn1PerOutputStream.
- Parameters:
-
| outs | PER Encode message stream object |
| charSet | Object representing permitted alphabet constraint character set (optional) |
| lower | Effective size constraint lower bound |
| upper | Effective size constraint upper bound |
- Exceptions:
-
|
|
|
This method encodes an ASN.1 character string value in accordance with the packed encoding rules (PER) directly into the stream. This version of the method assumes no size constraints but does allow a permitted alphabet character set to be specified.
The value to encode is stored in the public mValue member variable in the Asn1CharString base class.
Also throws any exception thrown by the Asn1PerOutputStream.
- Parameters:
-
| outs | PER Encode message stream object |
| charSet | Object representing permitted alphabet constraint character set (optional) |
- Exceptions:
-
|
|
|
This method encodes an ASN.1 character string value in accordance with the packed encoding rules (PER) directly into the stream. This version of the method assumes no permitted alphabet or size constraints.
The value to encode is stored in the public mValue member variable in the Asn1CharString base class.
Also throws any exception thrown by the Asn1PerOutputStream.
- Parameters:
-
| outs | PER Encode message stream object |
- Exceptions:
-
Reimplemented from Asn1Type.
Reimplemented in Asn1Time. |
|
|
This overloaded version of the encode method encodes an ASN.1 character string value in accordance with the packed encoding rules (PER). This version of the method assumes a size constraint is present and an optional permitted alphabet constraint.
The value to encode is stored in the public mValue member variable in the Asn1CharString base class.
- Parameters:
-
| buffer | Encode message buffer object |
| charSet | Object representing permitted alphabet constraint character set (optional) |
| lower | Effective size constraint lower bound |
| upper | Effective size constraint upper bound |
|
|
|
This method encodes an ASN.1 character string value in accordance with the packed encoding rules (PER). This version of the method assumes no size constraints but does allow a permitted alphabet character set to be specified.
The value to encode is stored in the public mValue member variable in the Asn1CharString base class.
- Parameters:
-
| buffer | Encode message buffer object |
| charSet | Object representing permitted alphabet constraint character set (optional) |
|
|
|
This method encodes an ASN.1 character string value in accordance with the packed encoding rules (PER). This version of the method assumes no permitted alphabet or size constraints.
The value to encode is stored in the public mValue member variable in the Asn1CharString base class.
- Parameters:
-
| buffer | Encode message buffer object |
Reimplemented from Asn1Type.
Reimplemented in Asn1NumericString, and Asn1Time. |
Member Data Documentation
|
|
The BITSPERCHAR_A constant specifies the number of bits per character for PER (aligned). |
|
|
The BITSPERCHAR_U constant specifies the number of bits per character for PER (unaligned). |
|
This document may be distributed in any form, electronic
or otherwise, provided that it is distributed in its entirety
and that the copyright and this notice are included.
|
This file was last modified on
18 Nov 2005. ASN1C C# Runtime Library, 5.8 |
|