CborWriter.Encode 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
Encode() |
Returns a new array containing the encoded value. |
Encode(Span<Byte>) |
Writes the encoded representation of the data to |
Encode()
- Source:
- CborWriter.cs
- Source:
- CborWriter.cs
- Source:
- CborWriter.cs
- Source:
- CborWriter.cs
Returns a new array containing the encoded value.
public:
cli::array <System::Byte> ^ Encode();
public byte[] Encode ();
member this.Encode : unit -> byte[]
Public Function Encode () As Byte()
Returns
A precisely-sized array containing the encoded value.
Exceptions
The writer does not contain a complete CBOR value or sequence of root-level values.
Applies to
Encode(Span<Byte>)
- Source:
- CborWriter.cs
- Source:
- CborWriter.cs
- Source:
- CborWriter.cs
- Source:
- CborWriter.cs
Writes the encoded representation of the data to destination
.
public:
int Encode(Span<System::Byte> destination);
public int Encode (Span<byte> destination);
member this.Encode : Span<byte> -> int
Public Function Encode (destination As Span(Of Byte)) As Integer
Parameters
Returns
The number of bytes written to destination
.
Exceptions
The writer does not contain a complete CBOR value or sequence of root-level values.
The destination buffer is not large enough to hold the encoded value.
Applies to
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應