Asn1UtilsEncode(Byte, Asn1Type) 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,
	Asn1Type type
)

Parameters

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

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