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
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
Returned text or a text read error, with a 65536-byte result limit.