Struct BufferConsumer<T>
Assembly: DotNext.dll
Syntax
public readonly struct BufferConsumer<T> : IConsumer<ReadOnlySpan<T>>, ISupplier<ReadOnlyMemory<T>, CancellationToken, ValueTask>, IFunctional, IEquatable<BufferConsumer<T>>
Type Parameters
| Name |
Description |
| T |
The type of the elements in the buffer.
|
Constructors
View Source
BufferConsumer(IBufferWriter<T>)
Declaration
public BufferConsumer(IBufferWriter<T> writer)
Parameters
Properties
View Source
IsEmpty
Gets a value indicating that the underlying buffer is null.
Declaration
public bool IsEmpty { get; }
Property Value
Methods
View Source
Deconstruct(out IBufferWriter<T>)
Declaration
public void Deconstruct(out IBufferWriter<T> writer)
Parameters
View Source
Equals(BufferConsumer<T>)
Declaration
public bool Equals(BufferConsumer<T> other)
Parameters
Returns
View Source
Equals(object)
Declaration
public override bool Equals(object obj)
Parameters
| Type |
Name |
Description |
| object |
obj |
|
Returns
Overrides
View Source
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
View Source
ToString()
Declaration
public override string? ToString()
Returns
Overrides
Operators
View Source
operator ==(BufferConsumer<T>, BufferConsumer<T>)
Declaration
public static bool operator ==(BufferConsumer<T> left, BufferConsumer<T> right)
Parameters
Returns
View Source
operator !=(BufferConsumer<T>, BufferConsumer<T>)
Declaration
public static bool operator !=(BufferConsumer<T> left, BufferConsumer<T> right)
Parameters
Returns
Implements
Extension Methods