CoseHeaderValue.GetValueAsBytes 方法

定義

多載

GetValueAsBytes()

取得 CBOR 編碼的值做為位元組字串。

GetValueAsBytes(Span<Byte>)

取得 CBOR 編碼的值做為位元組字串。

GetValueAsBytes()

來源:
CoseHeaderValue.cs
來源:
CoseHeaderValue.cs
來源:
CoseHeaderValue.cs

取得 CBOR 編碼的值做為位元組字串。

public:
 cli::array <System::Byte> ^ GetValueAsBytes();
public byte[] GetValueAsBytes ();
member this.GetValueAsBytes : unit -> byte[]
Public Function GetValueAsBytes () As Byte()

傳回

Byte[]

解碼的值做為位元組陣列。

例外狀況

值無法解碼為位元組字串。

適用於

GetValueAsBytes(Span<Byte>)

來源:
CoseHeaderValue.cs
來源:
CoseHeaderValue.cs
來源:
CoseHeaderValue.cs

取得 CBOR 編碼的值做為位元組字串。

public:
 int GetValueAsBytes(Span<System::Byte> destination);
public int GetValueAsBytes (Span<byte> destination);
member this.GetValueAsBytes : Span<byte> -> int
Public Function GetValueAsBytes (destination As Span(Of Byte)) As Integer

參數

destination
Span<Byte>

要在其中寫入解碼值的緩衝區。

傳回

寫入至 destination 的位元組數。

例外狀況

destination 太小而無法保存值。

值無法解碼為位元組字串。

適用於