AsnWriter.WriteInteger 方法
定义
重载
| 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>)
写入带有指定标记的整数值。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)
参数
- value
- Int64
要写入的值。The value to write.
要写入的标记,或将 null 用作默认标记(通用 2)。The tag to write, or null for the default tag (Universal 2).
例外
tag.TagClasstag.TagClass 为 Universal,但 tag.TagValueis Universal, but tag.TagValue 对于此方法而言是不正确的。is not correct for the method.
适用于
WriteInteger(BigInteger, Nullable<Asn1Tag>)
写入带有指定标记的整数值。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)
参数
- value
- BigInteger
要写入的值。The value to write.
要写入的标记,或将 null 用作默认标记(通用 2)。The tag to write, or null for the default tag (Universal 2).
例外
tag.TagClasstag.TagClass 为 Universal,但 tag.TagValueis Universal, but tag.TagValue 对于此方法而言是不正确的。is not correct for the method.
适用于
WriteInteger(ReadOnlySpan<Byte>, Nullable<Asn1Tag>)
写入带有指定标记的整数值。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)
参数
- value
- ReadOnlySpan<Byte>
要以带符号 Big-Endian 顺序写入的整数值。The integer value to write, in signed big-endian byte order.
要写入的标记,或将 null 用作默认标记(通用 2)。The tag to write, or null for the default tag (Universal 2).
例外
tag.TagClasstag.TagClass 为 Universal,但 tag.TagValueis Universal, but tag.TagValue 对于此方法而言是不正确的。is not correct for the method.
最多 9 个有效位设置完毕。the 9 most significant bits are all set. -或- 最多 9 个有效位均未设置。-or- the 9 most significant bits are all unset.
适用于
WriteInteger(UInt64, Nullable<Asn1Tag>)
重要
此 API 不符合 CLS。
写入带有指定标记的整数值。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)
参数
- value
- UInt64
要写入的值。The value to write.
要写入的标记,或将 null 用作默认标记(通用 2)。The tag to write, or null for the default tag (Universal 2).
- 属性
例外
tag.TagClasstag.TagClass 为 Universal,但 tag.TagValueis Universal, but tag.TagValue 对于此方法而言是不正确的。is not correct for the method.