Edit

Share via


Utf8JsonWriter.WriteBase64StringSegment Method

Definition

Writes the input bytes as a partial JSON string.

public:
 void WriteBase64StringSegment(ReadOnlySpan<System::Byte> value, bool isFinalSegment);
public void WriteBase64StringSegment(ReadOnlySpan<byte> value, bool isFinalSegment);
member this.WriteBase64StringSegment : ReadOnlySpan<byte> * bool -> unit
Public Sub WriteBase64StringSegment (value As ReadOnlySpan(Of Byte), isFinalSegment As Boolean)

Parameters

value
ReadOnlySpan<Byte>

The bytes to be written as a JSON string element of a JSON array.

isFinalSegment
Boolean

Indicates that this is the final segment of the string.

Exceptions

The specified value is too large.

When validation is enabled, this would result in invalid JSON being written, or if the previously written segment (if any) was not written with this same overload.

Applies to