PooledByteBufferWriter sealed class PooledByteBufferWriter : IBufferWriter<byte>, IDisposable Documentation Code public int Capacity { get; } public int FreeCapacity { get; } public int WrittenCount { get; } public ReadOnlyMemory<byte> WrittenMemory { get; } public PooledByteBufferWriter(int initialCapacity) public static PooledByteBufferWriter CreateEmptyInstanceForCaching() public void Advance(int count) public void Clear() public void ClearAndReturnBuffers() public void Dispose() public Memory<byte> GetMemory(int sizeHint = 0) public Span<byte> GetSpan(int sizeHint = 0) public void InitializeEmptyInstance(int initialCapacity)