UtilConsoleSetInputBufferSize Method
Sets the buffer size of the standard input stream (std-in)
acquired from the
OpenStandardInput function.
So the
ReadLine function can benefit from a larger buffer size.
Default buffer size is: 256
Namespace: DevCase.Core.Application.ConsoleAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static void SetInputBufferSize(
int bufferSize
)
Public Shared Sub SetInputBufferSize (
bufferSize As Integer
)
Dim bufferSize As Integer
UtilConsole.SetInputBufferSize(bufferSize)
public:
static void SetInputBufferSize(
int bufferSize
)
static member SetInputBufferSize :
bufferSize : int -> unit
No code example is currently available or this language may not be supported.
Parameters
- bufferSize Int32
-
Minimum value is: 256
Maximum recommended value is: UInt16 (65535)
Note that the last two characters in the buffer are reserved for
Cr + Lf.
This is a code example.
No code example is currently available or this language may not be supported.
Dim bufferSize As Integer = Short.MaxValue
ConsoleUtil.SetInputBufferSize(bufferSize)
' Copy very long string to clipboard.
Dim longString As New String("0", bufferSize)
Clipboard.SetText(longString)
' Manually paste the string here...
Dim line As String = Console.ReadLine()
Console.WriteLine()
Console.WriteLine($"String Length: {line.Length}")
Console.WriteLine("Press any key to exit...")
Console.ReadKey()
Environment.Exit(0)
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.