Struct StreamConsumer
Assembly: DotNext.dll
Syntax
public readonly struct StreamConsumer : IConsumer<ReadOnlySpan<byte>>, ISupplier<ReadOnlyMemory<byte>, CancellationToken, ValueTask>, IFunctional, IFlushable, IEquatable<StreamConsumer>
Constructors
View Source
StreamConsumer(Stream)
Declaration
public StreamConsumer(Stream output)
Parameters
| Type |
Name |
Description |
| Stream |
output |
The writable stream.
|
Properties
View Source
IsEmpty
Gets a value indicating that the underlying stream is null.
Declaration
public bool IsEmpty { get; }
Property Value
Methods
View Source
Deconstruct(out Stream)
Declaration
public void Deconstruct(out Stream output)
Parameters
| Type |
Name |
Description |
| Stream |
output |
|
View Source
Equals(StreamConsumer)
Declaration
public bool Equals(StreamConsumer 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()
Returns a string that represents the underlying stream.
Declaration
public override string? ToString()
Returns
| Type |
Description |
| string |
A string that represents the underlying stream.
|
Overrides
Operators
View Source
operator ==(StreamConsumer, StreamConsumer)
Declaration
public static bool operator ==(StreamConsumer left, StreamConsumer right)
Parameters
Returns
View Source
implicit operator StreamConsumer(Stream)
Declaration
public static implicit operator StreamConsumer(Stream output)
Parameters
| Type |
Name |
Description |
| Stream |
output |
The writable stream.
|
Returns
Exceptions
View Source
operator !=(StreamConsumer, StreamConsumer)
Declaration
public static bool operator !=(StreamConsumer left, StreamConsumer right)
Parameters
Returns
Implements
Extension Methods