Utf8JsonWriter.WriteBase64StringSegment Method
Definition
Namespace: Corvus.Text.Json
Assembly: Corvus.Text.Json.dll
Source: Utf8JsonWriter.WriteValues.StringSegment.cs
WriteBase64StringSegment(ReadOnlySpan<byte>, bool)
Writes the input bytes as a partial JSON string.
public void WriteBase64StringSegment(ReadOnlySpan<byte> value, bool isFinalSegment)
Parameters
| Name | Type | Description |
|---|---|---|
value |
ReadOnlySpan<byte> |
The bytes to be written as a JSON string element of a JSON array. |
isFinalSegment |
bool |
Indicates that this is the final segment of the string. |
Exceptions
| Exception | Description |
|---|---|
ArgumentException |
Thrown when the specified value is too large. |
InvalidOperationException |
Thrown when validation is enabled if 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
| Product | Versions |
|---|---|
| .NET | 9, 10 |
| .NET Standard | 2.0, 2.1 |
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests.
Open an issue