CborReader.ReadCborNegativeIntegerRepresentation 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
重要
此 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範圍內不在。
下一個資料項目沒有正確的主要類型。
備註
此方法支援解碼介於 -18446744073709551616 到 -1 之間的整數。 對於處理不符合類型 Int64 範圍的數值非常有用。