Jaa


AsnWriter.WriteInteger Method

Definition

Overloads

WriteInteger(Int64, Nullable<Asn1Tag>)

Write an Integer value with a specified tag.

WriteInteger(BigInteger, Nullable<Asn1Tag>)

Write an Integer value with a specified tag.

WriteInteger(ReadOnlySpan<Byte>, Nullable<Asn1Tag>)

Write an Integer value with a specified tag.

WriteInteger(UInt64, Nullable<Asn1Tag>)

Write an Integer value with a specified tag.

WriteInteger(Int64, Nullable<Asn1Tag>)

Source:
AsnWriter.Integer.cs
Source:
AsnWriter.Integer.cs
Source:
AsnWriter.Integer.cs
Source:
AsnWriter.Integer.cs
Source:
AsnWriter.Integer.cs

Write an Integer value with a specified tag.

public void WriteInteger (long value, System.Formats.Asn1.Asn1Tag? tag = default);
member this.WriteInteger : int64 * Nullable<System.Formats.Asn1.Asn1Tag> -> unit
Public Sub WriteInteger (value As Long, Optional tag As Nullable(Of Asn1Tag) = Nothing)

Parameters

value
Int64

The value to write.

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.

Applies to

WriteInteger(BigInteger, Nullable<Asn1Tag>)

Source:
AsnWriter.Integer.cs
Source:
AsnWriter.Integer.cs
Source:
AsnWriter.Integer.cs
Source:
AsnWriter.Integer.cs
Source:
AsnWriter.Integer.cs

Write an Integer value with a specified tag.

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

Parameters

value
BigInteger

The value to write.

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.

Applies to

WriteInteger(ReadOnlySpan<Byte>, Nullable<Asn1Tag>)

Source:
AsnWriter.Integer.cs
Source:
AsnWriter.Integer.cs
Source:
AsnWriter.Integer.cs
Source:
AsnWriter.Integer.cs
Source:
AsnWriter.Integer.cs

Write an Integer value with a specified tag.

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

Parameters

value
ReadOnlySpan<Byte>

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

tag
Nullable<Asn1Tag>

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

Exceptions

The 9 most significant bits are all set.

-or-

The 9 most significant bits are all unset.

Applies to

WriteInteger(UInt64, Nullable<Asn1Tag>)

Source:
AsnWriter.Integer.cs
Source:
AsnWriter.Integer.cs
Source:
AsnWriter.Integer.cs
Source:
AsnWriter.Integer.cs
Source:
AsnWriter.Integer.cs

Important

This API is not CLS-compliant.

Write an Integer value with a specified tag.

[System.CLSCompliant(false)]
public void WriteInteger (ulong value, System.Formats.Asn1.Asn1Tag? tag = default);
[<System.CLSCompliant(false)>]
member this.WriteInteger : uint64 * Nullable<System.Formats.Asn1.Asn1Tag> -> unit
Public Sub WriteInteger (value As ULong, Optional tag As Nullable(Of Asn1Tag) = Nothing)

Parameters

value
UInt64

The value to write.

tag
Nullable<Asn1Tag>

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

Attributes

Exceptions

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

Applies to