RawUtf8JsonString.TakeOwnership Method
Definition
Namespace: Corvus.Text.Json
Assembly: Corvus.Text.Json.dll
Source: RawUtf8JsonString.cs
TakeOwnership(ref byte[])
Takes ownership of the underlying memory and any extra rented array pool bytes.
public ReadOnlyMemory<byte> TakeOwnership(ref byte[] extraRentedArrayPoolBytes)
Parameters
| Name | Type | Description |
|---|---|---|
extraRentedArrayPoolBytes |
ref byte[] |
When this method returns, contains the extra rented array pool bytes, if any. |
Returns
The underlying UTF-8 bytes memory.
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