Asn1BuilderAddExplicit(Byte, Byte, Boolean) Method
Adds explicitly tagged type. Explicit (EXPLICIT OPTIONAL) must have at least one primitive or constructed nested type.
Namespace: SysadminsLV.Asn1ParserAssembly: SysadminsLV.Asn1Parser (in SysadminsLV.Asn1Parser.dll) Version: 1.2.11
public Asn1Builder AddExplicit(
byte explicitTag,
byte[] value,
bool mustEncode
)
Public Function AddExplicit (
explicitTag As Byte,
value As Byte(),
mustEncode As Boolean
) As Asn1Builder
public:
Asn1Builder^ AddExplicit(
unsigned char explicitTag,
array<unsigned char>^ value,
bool mustEncode
)
member AddExplicit :
explicitTag : byte *
value : byte[] *
mustEncode : bool -> Asn1Builder
- explicitTag Byte
-
Explicit tag number. This number equals to tag number in square brackets in ASN module definition of EXPLICIT.
- value Byte
-
Value to encode.
- mustEncode Boolean
-
Specifies if data in value parameter must be encoded or not. See Remarks for more details.
Asn1BuilderCurrent instance with added value.
If mustEncode parameter is set to true, then data in value parameter
is untagged. If mustEncode parameter is set to false, then data in value
parameter is explicitly tagged and only tag name change is necessary. Caller must have knowledge in advance if value is tagged or not.
If mustEncode parameter is set to false and value passed in value parameter
is untagged, invalid type will be produced.