Namespace DotBoxD.Services.Buffers
Classes
- Payload
A single-owner buffer rented from ArrayPool<T>. Dispose returns the backing array to the pool exactly once. Treat Memory as read-only after the buffer has been handed off (it is mutable only to support the receive fill path and the IMemoryOwner<T> contract).
- PooledBufferWriter
An IBufferWriter<T> backed by an array rented from ArrayPool<T>. Either hand the written bytes off via DetachPayload() or release them via Dispose() — never both.