public void Write(byte b) { Logger.Instance.Log(LogLevel.Debug, "Writing single byte " + b); stream.WriteByte(b); }