Jaa


AsnWriter.PopOctetString(Nullable<Asn1Tag>) Method

Definition

Indicate that the open Octet String with the tag UNIVERSAL 4 is closed, returning the writer to the parent context.

public void PopOctetString (System.Formats.Asn1.Asn1Tag? tag = default);
member this.PopOctetString : Nullable<System.Formats.Asn1.Asn1Tag> -> unit
Public Sub PopOctetString (Optional tag As Nullable(Of Asn1Tag) = Nothing)

Parameters

tag
Nullable<Asn1Tag>

The tag to write, or null for the default tag (Universal 4).

Exceptions

tag.TagClass is Universal, but tag.TagValue is not correct for the method.

the writer is not currently positioned within an Octet String with the specified tag.

Remarks

In BER and DER modes, the encoded contents will remain in a single primitive Octet String. In CER mode, the contents will be broken up into multiple segments, when required.

Applies to