public static string FormatFields(LogLevelFlags logLevel, LogField[] fields, bool useColor = false) { if (fields == null) { throw new ArgumentNullException(nameof(fields)); } var ret_ = g_log_writer_format_fields(logLevel, fields, (UIntPtr)fields.Length, useColor); var ret = GMarshal.LocalePtrToString(ret_, true); return(ret); }