CoseHeaderValue.GetValueAsBytes Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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
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
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
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈