ערוך

שתף באמצעות


CoseHeaderValue.GetValueAsBytes Method

Definition

Overloads

GetValueAsBytes()

Gets the CBOR-encoded value as a byte string.

GetValueAsBytes(Span<Byte>)

Gets the CBOR-encoded value as a byte string.

GetValueAsBytes()

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

Gets the CBOR-encoded value as a byte string.

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

Returns

Byte[]

The decoded value as a byte array.

Exceptions

The value could not be decoded as byte string.

Applies to

GetValueAsBytes(Span<Byte>)

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

Gets the CBOR-encoded value as a byte string.

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

Parameters

destination
Span<Byte>

The buffer in which to write the decoded 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.

Applies to