语言

CborReader.ReadCborNegativeIntegerRepresentation 方法

定义

重要

此 API 不符合 CLS。

将下一个数据项读取为 CBOR 负整数表示形式(主要类型 1)。

public:
 System::UInt64 ReadCborNegativeIntegerRepresentation();
[System.CLSCompliant(false)]
public ulong ReadCborNegativeIntegerRepresentation();
[<System.CLSCompliant(false)>]
member this.ReadCborNegativeIntegerRepresentation : unit -> uint64
Public Function ReadCborNegativeIntegerRepresentation () As ULong

返回

表示 -1 减去整数的无符号整数。

特性

例外

编码的整数的范围不足 UInt32。

下一个数据项没有正确的主类型。

下一个值具有无效的 CBOR 编码。

-或-

CBOR 编码数据意外结束。

-或-

下一个值使用在当前一致性模式下无效的 CBOR 编码。

注解

此方法支持在 -18446744073709551616 和 -1 之间解码整数。 用于处理不适合 Int64 类型的值。

适用于