Asn1TimeOfDay Class Reference
This is a container class for holding the components of an ASN.1 TIME-OF-DAY value.
Public Member Functions | |
Asn1TimeOfDay () | |
override void | Decode (Asn1PerDecodeBuffer buffer) |
override void | Encode (Asn1PerOutputStream outstr) |
override void | Encode (Asn1PerEncodeBuffer buffer) |
override void | Encode (Asn1BerOutputStream outstr, bool explicitTagging) |
override int | Encode (Asn1BerEncodeBuffer buffer, bool explicitTagging) |
Constructor & Destructor Documentation
Asn1TimeOfDay | ( | ) |
The default constructor creates an empty string object.
Member Function Documentation
override void Decode | ( | Asn1PerDecodeBuffer | buffer | ) | [virtual] |
This method decodes an ASN.1 TIME-OF-DAY value in accordance with the packed encoding rules (PER).
The decoded result is stored in the public
value
member variable in the Asn1CharString base class.
- Parameters:
-
buffer Decode message buffer object
Reimplemented from Asn18BitCharString.
override void Encode | ( | Asn1PerOutputStream | outstr | ) | [virtual] |
This method encodes an ASN.1 TIME-OF-DAY 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
value
member variable in the Asn1CharString base class.
- Parameters:
-
outstr PER Encode message stream object
Reimplemented from Asn18BitCharString.
override void Encode | ( | Asn1PerEncodeBuffer | buffer | ) | [virtual] |
This method encodes an ASN.1 TIME-OF-DAY value in accordance with the packed encoding rules (PER).
The value to encode is stored in the public
value
member variable in the Asn1CharString base class.
- Parameters:
-
buffer Encode message buffer object
Reimplemented from Asn18BitCharString.
override void Encode | ( | Asn1BerOutputStream | outstr, | |
bool | explicitTagging | |||
) | [virtual] |
This method encodes and writes to the stream an ASN.1 TIME-OF-DAY value including the UNIVERSAL tag value and length if explicit tagging is specified.
This overloaded version uses the Basic Encoding Rules (BER).
- Parameters:
-
outstr BER Output Stream object explicitTagging Flag indicating explicit tagging should be done
Reimplemented from Asn1Type.
override int Encode | ( | Asn1BerEncodeBuffer | buffer, | |
bool | explicitTagging | |||
) | [virtual] |
This method encodes an ASN.1 TIME-OF-DAY string type.
The UNIVERSAL tag value and length is also encoded if explicit tagging is specified.
- Parameters:
-
buffer Encode message buffer object explicitTagging Flag indicating explicit tagging should be done
- Returns:
- Length in octets of encoded component
Reimplemented from Asn1Type.