AsnWriter.Encode Method

Definition

Overloads

Encode()

Return a new array containing the encoded value.

Encode(Span<Byte>)

Writes the encoded representation of the data to destination.

Encode()

Source:
AsnWriter.cs
Source:
AsnWriter.cs
Source:
AsnWriter.cs

Return 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

Byte[]

A precisely-sized array containing the encoded value.

Exceptions

Applies to

Encode(Span<Byte>)

Source:
AsnWriter.cs
Source:
AsnWriter.cs
Source:
AsnWriter.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

destination
Span<Byte>

The buffer in which to write.

Returns

The number of bytes written to destination.

Exceptions

Applies to