Свойство | Тип | Описание | |
---|---|---|---|
APPLICATION | byte | ||
BITSTRING | byte | ||
BOOLEAN | byte | ||
CONSTRUCTOR | byte | ||
CONTEXT | byte | ||
INTEGER | byte | ||
NULL | byte | ||
OBJECTID | byte | ||
OCTETSTRING | byte | ||
PRIMITIVE | byte | ||
PRIVATE | byte | ||
SEQUENCE | byte | ||
SET | byte | ||
UNIVERSAL | byte |
Свойство | Тип | Описание | |
---|---|---|---|
EXTENSION_ID | byte | ||
HIGH_BIT | byte | ||
_asnType | byte |
Метод | Описание | |
---|---|---|
Clone ( ) : object |
Abstract Clone() member function
|
|
decode ( byte buffer, int offset ) : int |
Decodes the ASN.1 buffer and sets the values in the AsnType object.
|
|
encode ( MutableByte buffer ) : void |
Encodes the data object in the specified buffer
|
Метод | Описание | |
---|---|---|
BuildHeader ( MutableByte mb, byte asnType, int asnLength ) : void |
Build ASN.1 header in the MutableByte array. Header is the TL part of the TLV (type, length, value) BER encoded data representation. Each value is encoded as a Type byte, length of the data field and the actual, encoded data. This method will encode the type and length fields. |
|
BuildLength ( MutableByte mb, int asnLength ) : void |
Append BER encoded length to the MutableByte
|
|
ParseHeader ( byte mb, int &offset, int &length ) : byte |
Parse ASN.1 header.
|
|
ParseLength ( byte mb, int &offset ) : int |
MutableByte version of ParseLength. Retrieve BER encoded length from a byte array at supplied offset
|
public abstract decode ( byte buffer, int offset ) : int | ||
buffer | byte | The encoded data buffer |
offset | int | The offset of the first valid byte. |
Результат | int |
public abstract encode ( MutableByte buffer ) : void | ||
buffer | MutableByte | The buffer to write the encoded information |
Результат | void |