Asn1UtilsEncode(Byte, Asn1Type) Method
Wraps encoded data to an ASN.1 type/structure.
Namespace: SysadminsLV.Asn1ParserAssembly: SysadminsLV.Asn1Parser (in SysadminsLV.Asn1Parser.dll) Version: 1.2.11
public static byte[] Encode(
byte[] rawData,
Asn1Type type
)
Public Shared Function Encode (
rawData As Byte(),
type As Asn1Type
) As Byte()
public:
static array<unsigned char>^ Encode(
array<unsigned char>^ rawData,
Asn1Type type
)
static member Encode :
rawData : byte[] *
type : Asn1Type -> byte[]
- rawData Byte
- A byte array to wrap.
- type Asn1Type
- An enumeration of Asn1Type.
ByteWrapped encoded byte array.
This method do not check whether the data in rawData is valid data for specified enclosing type.