Share via


AsnWriter.WriteEncodedValue(ReadOnlySpan<Byte>) Method

Definition

Write a single value which has already been encoded.

public:
 void WriteEncodedValue(ReadOnlySpan<System::Byte> value);
public void WriteEncodedValue (ReadOnlySpan<byte> value);
member this.WriteEncodedValue : ReadOnlySpan<byte> -> unit
Public Sub WriteEncodedValue (value As ReadOnlySpan(Of Byte))

Parameters

value
ReadOnlySpan<Byte>

The value to write.

Exceptions

value could not be read under the current encoding rules.

 -or-

 <code data-dev-comment-type="paramref">value</code> has data beyond the end of the first value.

Remarks

This method only checks that the tag and length are encoded according to the current ruleset, and that the end of the value is the end of the input. The contents are not evaluated for semantic meaning.

Applies to