public void Save() { Misc.WriteColor(ConsoleColor.Black, ConsoleColor.Green, $"CRITICAL: SAVING BITMAP DATABASE!!! WAIT JUST A SECOND PLEASE!!!"); var sizeNeeded = r.getSizeInBytes(false); var buff = new byte[sizeNeeded]; r.write(buff, false); File.WriteAllBytes(HashDBBitMap, buff); Misc.WriteColor(ConsoleColor.Green, ConsoleColor.Black, $"Done. Commited {sizeNeeded:N0} bytes to disk for bitmap."); }