Utf8JsonWriter.WriteBase64StringSegment 方法

定义

将输入字节写入部分 JSON 字符串。

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)

参数

value
ReadOnlySpan<Byte>

要写入为 JSON 数组的 JSON 字符串元素的字节。

isFinalSegment
Boolean

指示这是字符串的最后一段。

例外

指定的值太大。

启用验证后,这将导致写入无效的 JSON,或者以前写入的段(如果有)未使用同一重载写入。

适用于