CoseHeaderValue.FromBytes Method

Definition

Overloads

FromBytes(Byte[])

Creates a CoseHeaderValue instance from a byte array.

FromBytes(ReadOnlySpan<Byte>)

Creates a CoseHeaderValue instance from a span of bytes.

FromBytes(Byte[])

Source:
CoseHeaderValue.cs
Source:
CoseHeaderValue.cs
Source:
CoseHeaderValue.cs

Creates a CoseHeaderValue instance from a byte array.

public static System.Security.Cryptography.Cose.CoseHeaderValue FromBytes (byte[] value);

Parameters

value
Byte[]

The bytes to be encoded and that the instance will represent.

Returns

An instance that represents the CBOR-encoded value.

Exceptions

value is null.

Applies to

.NET 9 (package-provided) et autres versions
Produit Versions
.NET 8 (package-provided), 9 (package-provided)
.NET Framework 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided)
.NET Standard 2.0 (package-provided)

FromBytes(ReadOnlySpan<Byte>)

Source:
CoseHeaderValue.cs
Source:
CoseHeaderValue.cs
Source:
CoseHeaderValue.cs

Creates a CoseHeaderValue instance from a span of bytes.

public static System.Security.Cryptography.Cose.CoseHeaderValue FromBytes (ReadOnlySpan<byte> value);

Parameters

value
ReadOnlySpan<Byte>

The bytes to be encoded and that the instance will represent.

Returns

An instance that represents the CBOR-encoded value.

Applies to

.NET 9 (package-provided) et autres versions
Produit Versions
.NET 8 (package-provided), 9 (package-provided)
.NET Framework 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided)
.NET Standard 2.0 (package-provided)