UnescapedUtf8JsonString
Definition
Namespace: Corvus.Text.Json
Assembly: Corvus.Text.Json.dll
Source: UnescapedUtf8JsonString.cs
Represents an Unescaped UTF-8 JSON string.
public readonly struct UnescapedUtf8JsonString : IDisposable
Remarks
This may use a rented buffer to back the string, so it is disposable.
Implements
Constructors
| Constructor | Description |
|---|---|
| UnescapedUtf8JsonString(ReadOnlyMemory<byte>, byte[]) | Initializes a new instance of the UnescapedUtf8JsonString struct. |
Properties
| Property | Type | Description |
|---|---|---|
| Memory | ReadOnlyMemory<byte> |
Gets the UTF-8 bytes as a read-only memory. |
| Span | ReadOnlySpan<byte> |
Gets the UTF-8 bytes as a read-only span. |
Methods
| Method | Description |
|---|---|
| Dispose() | Disposes the unescaped UTF-8 JSON string, returning any rented array pool bytes. |
| TakeOwnership(ref byte[]) | Take ownership of the Shared bytes, if any. |
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