public static void WriteInt(this Stream stream, int n) { byte [] bytes = converter.GetBytes(n); stream.Write(bytes, 0, bytes.Length); }