StringReader.ReadBlock(Span<Char>) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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.