Share via


CoseHeaderMap.GetValueAsBytes メソッド

定義

オーバーロード

GetValueAsBytes(CoseHeaderLabel, Span<Byte>)

指定したラベルに関連付けられている値をバイト文字列として取得します。

GetValueAsBytes(CoseHeaderLabel)

指定したラベルに関連付けられている値をバイト文字列として取得します。

GetValueAsBytes(CoseHeaderLabel, Span<Byte>)

ソース:
CoseHeaderMap.cs
ソース:
CoseHeaderMap.cs
ソース:
CoseHeaderMap.cs
ソース:
CoseHeaderMap.cs

指定したラベルに関連付けられている値をバイト文字列として取得します。

public:
 int GetValueAsBytes(System::Security::Cryptography::Cose::CoseHeaderLabel label, Span<System::Byte> destination);
public int GetValueAsBytes (System.Security.Cryptography.Cose.CoseHeaderLabel label, Span<byte> destination);
member this.GetValueAsBytes : System.Security.Cryptography.Cose.CoseHeaderLabel * Span<byte> -> int
Public Function GetValueAsBytes (label As CoseHeaderLabel, destination As Span(Of Byte)) As Integer

パラメーター

label
CoseHeaderLabel

取得する値のラベル。

destination
Span<Byte>

値を書き込むバッファー。

戻り値

destination に書き込むバイト数。

例外

destination が小さすぎて値を保持する必要があります。

値をバイト文字列としてデコードできませんでした。

label が見つかりません。

適用対象

GetValueAsBytes(CoseHeaderLabel)

ソース:
CoseHeaderMap.cs
ソース:
CoseHeaderMap.cs
ソース:
CoseHeaderMap.cs
ソース:
CoseHeaderMap.cs

指定したラベルに関連付けられている値をバイト文字列として取得します。

public:
 cli::array <System::Byte> ^ GetValueAsBytes(System::Security::Cryptography::Cose::CoseHeaderLabel label);
public byte[] GetValueAsBytes (System.Security.Cryptography.Cose.CoseHeaderLabel label);
member this.GetValueAsBytes : System.Security.Cryptography.Cose.CoseHeaderLabel -> byte[]
Public Function GetValueAsBytes (label As CoseHeaderLabel) As Byte()

パラメーター

label
CoseHeaderLabel

取得する値のラベル。

戻り値

Byte[]

指定したラベルに関連付けられた値をバイト文字列として指定します。

例外

値をバイト文字列としてデコードできませんでした。

適用対象