JsonWorkspace.RentWriter Method
Definition
Namespace: Corvus.Text.Json
Assembly: Corvus.Text.Json.dll
Source: JsonWorkspace.cs
RentWriter(IBufferWriter<byte>)
Rents a UTF-8 JSON writer from the pool that writes to the specified buffer writer.
public Utf8JsonWriter RentWriter(IBufferWriter<byte> bufferWriter)
Parameters
| Name | Type | Description |
|---|---|---|
bufferWriter |
IBufferWriter<byte> |
The buffer writer to write JSON data to. |
Returns
A rented UTF-8 JSON writer configured with the workspace options.
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