terraria-cpp2il-methodrecon v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches

◆ Read()

int System.TermInfoDriver.Read ( [Out] char[] dest,
int index,
int count )
inline

Definition at line 430 of file TermInfoDriver.cs.

431 {
432 int num2;
433 do
434 {
435 int num = 1;
436 object keyFromBuffer = this.GetKeyFromBuffer(num != 0);
437 if (keyFromBuffer == null)
438 {
439 break;
440 }
441 num2 = 1;
442 }
443 while (this.GetKeyFromBuffer(num2 != 0) != null);
444 int num3 = this.cursorLeft;
447 this.Echo(consoleKeyInfo);
448 int num4 = this.echon;
449 if (num4 != 0)
450 {
452 char[] array = this.echobuf;
453 cstreamWriter.InternalWriteChars(array, num4);
454 }
455 long num5 = 0L;
456 this.AddToBuffer((int)num5);
457 throw new InvalidCastException();
458 }
class f__AnonymousType0<< Count > j__TPar
void InternalWriteChars(char[] buffer, int n)
object GetKeyFromBuffer(bool cooked)
void Echo(ConsoleKeyInfo key)

References System.TermInfoDriver.AddToBuffer(), System.array, System.TermInfoDriver.cursorLeft, System.TermInfoDriver.Echo(), System.TermInfoDriver.echobuf, System.TermInfoDriver.echon, System.TermInfoDriver.GetKeyFromBuffer(), System.IO.CStreamWriter.InternalWriteChars(), j__TPar, System.L, and System.TermInfoDriver.stdout.

Referenced by System.IO.CStreamReader.Read().