Share via


AsnWriter.WriteIntegerUnsigned Method

Definition

Write an Integer value with a specified tag.

public void WriteIntegerUnsigned (ReadOnlySpan<byte> value, System.Formats.Asn1.Asn1Tag? tag = default);
member this.WriteIntegerUnsigned : ReadOnlySpan<byte> * Nullable<System.Formats.Asn1.Asn1Tag> -> unit
Public Sub WriteIntegerUnsigned (value As ReadOnlySpan(Of Byte), Optional tag As Nullable(Of Asn1Tag) = Nothing)

Parameters

value
ReadOnlySpan<Byte>

The integer value to write, in unsigned big-endian byte order.

tag
Nullable<Asn1Tag>

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

Exceptions

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

the 9 most significant bits are all unset.

Applies to