DotNext by Roman Sakno

<PackageReference Include="DotNext" Version="3.2.1" />

 BufferConsumer<T>

Represents implementation of IReadOnlySpanConsumer<T> in the form of the writer to IBufferWriter<T>.
public bool IsEmpty { get; }

Gets a value indicating that the underlying buffer is null.

public BufferConsumer(IBufferWriter<T> output)

Wraps the buffer writer.

public static bool op_Equality(BufferConsumer<T> x, BufferConsumer<T> y)

Determines whether the two objects contain references to the same buffer writer.

public static bool op_Inequality(BufferConsumer<T> x, BufferConsumer<T> y)

Determines whether the two objects contain references to the different buffer writers.

public bool Equals(BufferConsumer<T> other)

Determines whether this object contains the same buffer instance as the specified object.