Esempio n. 1
0
 public static unsafe bool Equals(ConsoleChar *c1, ConsoleChar *c2)
 {
     return(c1->Char == c2->Char &&
            c1->ForegroundColor == c2->ForegroundColor &&
            c1->BackgroundColor == c2->BackgroundColor &&
            c1->Attributes == c2->Attributes);
 }
Esempio n. 2
0
 public unsafe ConsoleBuffer(ConsoleDevice dev)
 {
     Rows    = dev.Rows;
     Columns = dev.Columns;
     Chars   = (ConsoleChar *)RuntimeMemory.AllocateCleared(sizeof(ConsoleChar) * Rows * Columns);
 }