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); }
public unsafe ConsoleBuffer(ConsoleDevice dev) { Rows = dev.Rows; Columns = dev.Columns; Chars = (ConsoleChar *)RuntimeMemory.AllocateCleared(sizeof(ConsoleChar) * Rows * Columns); }