Development · Native API migration preview · Coverage validation in progress Published release →

API Browser

Member group

Read

Declaring type: SyncTextReader
Module: System.IO
Assembly: System.Runtime.dll
Source file: SyncTextReader.rvn

Overloads / Variants

Read

abstract virtual func Read(count: int, maxUtf8Bytes: int) -> Result<string, TextReadError>

Source file: SyncTextReader.rvn

Defined by SyncTextReader.Read · Required implementation (no default).

Interface implementation: Required implementation (no default).

Reads the requested grapheme count with a separate result byte bound.

Parameters

Name Type Description
count Int32 Nonnegative grapheme count; zero consumes nothing.
maxUtf8Bytes Int32 Maximum UTF-8 bytes in the returned text.

Return value

Result<String, TextReadError>

text, shorter at EOF, or a text read error.

Read

abstract virtual func Read(count: int) -> Result<string, TextReadError>

Source file: SyncTextReader.rvn

Defined by SyncTextReader.Read · Required implementation (no default).

Interface implementation: Required implementation (no default).

Reads the requested grapheme count, or the shorter remainder at EOF.

Parameters

Name Type Description
count Int32 Nonnegative grapheme count; zero consumes nothing.

Return value

Result<String, TextReadError>

text or a text read error.