Interface IPooledBuffer
Represents a pooled buffer abstraction providing read/write access to pooled memory.
public interface IPooledBuffer
- Extension Methods
Remarks
This interface defines the buffer abstraction without forcing disposal semantics. For buffers that must be returned to a pool, use IDisposablePooledBuffer which extends this interface with IDisposable.
Per Microsoft Interface Segregation guidelines, interfaces should not force IDisposable inheritance unless disposal is fundamental to all implementations.
Properties
Array
Gets the underlying byte array (alias for Buffer).
byte[] Array { get; }
Property Value
- byte[]
Buffer
Gets the underlying byte array.
byte[] Buffer { get; }
Property Value
- byte[]
Length
Gets the length of the buffer (alias for Size).
int Length { get; }
Property Value
Memory
Gets a Memory<byte> view of the buffer.
Memory<byte> Memory { get; }
Property Value
Size
Gets the size of the buffer.
int Size { get; }
Property Value
Span
Gets a Span<byte> view of the buffer.
Span<byte> Span { get; }