CoseHeaderMap.GetValueAsBytes Method

Definition

Overloads

GetValueAsBytes(CoseHeaderLabel, Span<Byte>)

Gets the value associated with the specified label, as a byte string.

GetValueAsBytes(CoseHeaderLabel)

Gets the value associated with the specified label, as a byte string.

GetValueAsBytes(CoseHeaderLabel, Span<Byte>)

Source:
CoseHeaderMap.cs
Source:
CoseHeaderMap.cs
Source:
CoseHeaderMap.cs

Gets the value associated with the specified label, as a byte string.

C#
public int GetValueAsBytes(System.Security.Cryptography.Cose.CoseHeaderLabel label, Span<byte> destination);

Parameters

label
CoseHeaderLabel

The label of the value to get.

destination
Span<Byte>

The buffer in which to write the value.

Returns

The number of bytes written to destination.

Exceptions

destination is too small to hold the value.

The value could not be decoded as byte string.

label is not found.

Applies to

.NET 10 (package-provided) och andra versioner
Produkt Versioner
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Standard 2.0 (package-provided)

GetValueAsBytes(CoseHeaderLabel)

Source:
CoseHeaderMap.cs
Source:
CoseHeaderMap.cs
Source:
CoseHeaderMap.cs

Gets the value associated with the specified label, as a byte string.

C#
public byte[] GetValueAsBytes(System.Security.Cryptography.Cose.CoseHeaderLabel label);

Parameters

label
CoseHeaderLabel

The label of the value to get.

Returns

Byte[]

The value associated with the specified label, as a byte string.

Exceptions

The value could not be decoded as byte string.

Applies to

.NET 10 (package-provided) och andra versioner
Produkt Versioner
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Standard 2.0 (package-provided)