// Copyright Epic Games, Inc. All Rights Reserved. // This file is automatically generated. Changes to this file may be overwritten. namespace Epic.OnlineServices.Logging { /// /// A structure representing a log message /// public struct LogMessage { /// /// A string representation of the log message category, encoded in UTF-8. Only valid during the life of the callback, so copy the string if you need it later. /// public Utf8String Category { get; set; } /// /// The log message, encoded in UTF-8. Only valid during the life of the callback, so copy the string if you need it later. /// public Utf8String Message { get; set; } /// /// The log level associated with the message /// public LogLevel Level { get; set; } internal void Set(ref LogMessageInternal other) { Category = other.Category; Message = other.Message; Level = other.Level; } } [System.Runtime.InteropServices.StructLayout(System.Runtime.InteropServices.LayoutKind.Sequential, Pack = 8)] internal struct LogMessageInternal : IGettable, ISettable, System.IDisposable { private System.IntPtr m_Category; private System.IntPtr m_Message; private LogLevel m_Level; public Utf8String Category { get { Utf8String value; Helper.Get(m_Category, out value); return value; } set { Helper.Set(value, ref m_Category); } } public Utf8String Message { get { Utf8String value; Helper.Get(m_Message, out value); return value; } set { Helper.Set(value, ref m_Message); } } public LogLevel Level { get { return m_Level; } set { m_Level = value; } } public void Set(ref LogMessage other) { Category = other.Category; Message = other.Message; Level = other.Level; } public void Set(ref LogMessage? other) { if (other.HasValue) { Category = other.Value.Category; Message = other.Value.Message; Level = other.Value.Level; } } public void Dispose() { Helper.Dispose(ref m_Category); Helper.Dispose(ref m_Message); } public void Get(out LogMessage output) { output = new LogMessage(); output.Set(ref this); } } }