Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
IAsn1Decoder.cs
1using System;
2using System.Collections.Generic;
3using System.IO;
4
5namespace Waher.Content.Asn1
6{
10 public interface IAsn1Decoder
11 {
18 long DecodeIdentifier(out bool Constructed, out TagClass Class);
19
25 long DecodeLength(Stream Input);
26
32 bool DecodeBOOLEAN(Stream Input);
33
39 long DecodeINTEGER(Stream Input);
40
47 Enum DecodeEnum<T>(Stream Input)
48 where T : Enum;
49
55 double DecodeREAL(Stream Input);
56
63 byte[] DecodeBitString(Stream Input, out int NrUnusedBits);
64
70 byte[] DecodeOctetString(Stream Input);
71
77 void DecodeNull(Stream Input);
78
84 int[] DecodeObjectId(Stream Input);
85
91 int[] DecodeRelativeObjectId(Stream Input);
92
98 string DecodeBmpString(Stream Input);
99
105 string DecodeIa5String(Stream Input);
106
112 string DecodeVisibleString(Stream Input);
113
119 string DecodeUtf8String(Stream Input);
120
126 string DecodeUniversalString(Stream Input);
127
133 string DecodePrintableString(Stream Input);
134
140 string DecodeNumericString(Stream Input);
141
147 TimeSpan DecodeTime(Stream Input);
148
154 DateTime DecodeDate(Stream Input);
155
161 TimeSpan DecodeTimeOfDay(Stream Input);
162
168 DateTime DecodeDateTime(Stream Input);
169
176 }
177}
Interface for ASN.1 decoders
Definition: IAsn1Decoder.cs:11
string DecodeBmpString(Stream Input)
Decodes a BmpString value.
string DecodePrintableString(Stream Input)
Decodes a PrintableString value.
DateTime DecodeDate(Stream Input)
Decodes a DATE value.
DateTime DecodeDateTime(Stream Input)
Decodes a DATE-TIME value.
long DecodeINTEGER(Stream Input)
Decodes an INTEGER value.
int[] DecodeRelativeObjectId(Stream Input)
Decodes a RELATIVE-OID value.
string DecodeUniversalString(Stream Input)
Decodes a UniversalString value.
TimeSpan DecodeTimeOfDay(Stream Input)
Decodes a TIME-OF-DAY value.
long DecodeIdentifier(out bool Constructed, out TagClass Class)
Decodes an identifier from the stream.
string DecodeVisibleString(Stream Input)
Decodes a VisibleString value.
string DecodeUtf8String(Stream Input)
Decodes a Utf8String value.
string DecodeNumericString(Stream Input)
Decodes a NumericString value.
long DecodeLength(Stream Input)
Decodes the length of a contents section.
string DecodeIa5String(Stream Input)
Decodes a IA5String value.
Duration DecodeDuration(Stream Input)
Decodes a DURATION value.
bool DecodeBOOLEAN(Stream Input)
Decodes a BOOLEAN value.
byte[] DecodeBitString(Stream Input, out int NrUnusedBits)
Decodes a BIT STRING value.
byte[] DecodeOctetString(Stream Input)
Decodes a OCTET STRING value.
int[] DecodeObjectId(Stream Input)
Decodes an OBJECT IDENTIFIER value.
Enum DecodeEnum< T >(Stream Input)
Decodes an enumerated value.
TimeSpan DecodeTime(Stream Input)
Decodes a TIME value.
double DecodeREAL(Stream Input)
Decodes a REAL value.
void DecodeNull(Stream Input)
Decodes a NULL value.
TagClass
TAG class
Definition: TagClass.cs:11
Represents a duration value, as defined by the xsd:duration data type: http://www....
Definition: Duration.cs:13