Esempio n. 1
0
        private static bool Error(string error)
        {
            if (string.IsNullOrEmpty(error))
            {
                _errorBuffer[0] = 0;
                return(false);
            }

            CharsetConverter.UTF16ToUTF8Buffer(error, _errorBuffer, ErrorBufferSize);

            return(false);
        }
Esempio n. 2
0
        public static void Log(string text, LogLevel level)
        {
            if (string.IsNullOrEmpty(text))
            {
                _logBuffer[0] = 0;
                LogInternal(level);
                return;
            }

            CharsetConverter.UTF16ToUTF8Buffer(text, _logBuffer, LogBufferSize);

            LogInternal(level);
        }