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

API Browser

Member group

Read

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

Overloads / Variants

Read

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

Source file: Console.rvn

Reads a requested grapheme count with a separate UTF-8 byte bound.

Parameters

Name Type Description
count Int32 Count from zero through 65536.
maxUtf8Bytes Int32 Maximum result bytes, from zero through 65536.

Return value

Result<String, TextReadError>

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

Read

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

Source file: Console.rvn

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

Parameters

Name Type Description
count Int32 Count from zero through 65536; zero consumes nothing.

Return value

Result<String, TextReadError>

Returned text or a text read error, with a 65536-byte result limit.