Asn1UtilsEncode(Byte, Byte) Method

Wraps encoded data to an ASN.1 type/structure.

Definition

Namespace: SysadminsLV.Asn1Parser
Assembly: SysadminsLV.Asn1Parser (in SysadminsLV.Asn1Parser.dll) Version: 1.2.11
C#
public static byte[] Encode(
	byte[] rawData,
	byte enclosingTag
)

Parameters

rawData  Byte
A byte array to wrap.
enclosingTag  Byte
An enumeration of Asn1Type type represented as byte.

Return Value

Byte
Wrapped encoded byte array.

Remarks

This method do not check whether the data in rawData is valid data for specified enclosing type.

See Also