Breyta

Deila með


StringReader.ReadBlock(Span<Char>) Method

Definition

Reads all the characters from the input string starting at the current position and advances the current position to the end of the input string.

public:
 override int ReadBlock(Span<char> buffer);
public override int ReadBlock (Span<char> buffer);
override this.ReadBlock : Span<char> -> int
Public Overrides Function ReadBlock (buffer As Span(Of Char)) As Integer

Parameters

buffer
Span<Char>

When this method returns, contains the characters read from the current source. If the total number of characters read is zero, the span remains unmodified.

Returns

The total number of characters read into the buffer.

Exceptions

The current string reader instance is closed.

Remarks

ReadBlock(Span<Char>) internally calls Read(Span<Char>) directly.

Applies to