public static void Write(this System.IO.Stream stream, string buffer) { NixStream nixStream = stream as NixStream; if (nixStream != null) { nixStream.WriteString(buffer); return; } byte[] bytes = System.Text.Encoding.UTF8.GetBytes(buffer); stream.Write(bytes, 0, bytes.Length); }
// NixStream specific public static void Write(this NixStream stream, string buffer) { stream.WriteString(buffer); }