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
.NET