Interface IBufferPool
Pool for renting buffers for IO operations, unescaping values, and other temporary use.
public interface IBufferPool
Remarks
This type is intentionally not disposable; if a custom implementation needs disposal, it should manage its own lifetime.
Methods
GetBytes(int)
Returns a byte buffer with at least the specified length.
IMemoryOwner<byte> GetBytes(int length)
Parameters
lengthint
Returns
GetChars(int)
Returns a char buffer with at least the specified length.
IMemoryOwner<char> GetChars(int length)
Parameters
lengthint