Interface IBufferReader
Represents buffer reader.
Namespace: DotNext.Buffers.Binary
Assembly: DotNext.IO.dll
Syntax
public interface IBufferReader
Properties
View SourceRemainingBytes
The expected number of bytes to be consumed by this reader.
Declaration
int RemainingBytes { get; }
Property Value
| Type | Description |
|---|---|
| int |
ThrowOnPartialData
Gets a value indicating that reader doesn't support decoding of partial data.
Declaration
public static bool ThrowOnPartialData { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Methods
View SourceApply(scoped ReadOnlySpan<byte>)
Consumes a buffer.
Declaration
void Apply(scoped ReadOnlySpan<byte> buffer)
Parameters
| Type | Name | Description |
|---|---|---|
| ReadOnlySpan<byte> | buffer | The buffer to consume. |