12using System.Reflection;
13using System.Runtime.InteropServices;
14using System.Runtime.CompilerServices;
15using System.Collections.Generic;
16using System.Threading;
24 public partial class MkLogFileC
26 public partial class MkLogFileC : MkObjectC
29 private readonly
static ConstructorInfo ctor =
getCtor(typeof(MkLogFileC));
30 private readonly
static ThreadLocal<MkLogFileC> MK_NULL =
new ThreadLocal<MkLogFileC>(() => {
42 private static IntPtr MkLogFileC_SelfCreate (IntPtr
mkrt, IntPtr obj, IntPtr env) {
46 private static void MkLogFileC_SelfUnlink (IntPtr
mkrt, IntPtr
self, IntPtr env) {
50 internal static void SetupThreadLFL (IntPtr
mkrt) {
51 Mk.MkCsTypeUpdate(
mkrt, MkCsTypeLookupE.LFL, MkLogFileC_SelfCreate, MkLogFileC_SelfUnlink);
54 #if !META_STATIC_OVERWRITE
59 SetupThreadLFL(IntPtr.Zero);
65 internal MkLogFileC (IntPtr hdlP) : base(hdlP) {
72 public partial class MkLogFileC {
82 IntPtr __retVal__L =
Mk.MkLogFileHandleResolve(IntPtr.Zero, netHdl);
94 public partial class MkLogFileC {
104 IntPtr __retVal__L =
Mk.MkLogFileNext(
hdl);
110 IntPtr __retVal__L =
Mk.MkLogFilePrev(
hdl);
118 IntPtr __retVal__L =
Mk.MkLogFileInstances(IntPtr.Zero);
126 public partial class MkLogFileC {
136 IntPtr __retVal__L =
Mk.MkLogFileGetNull();
144 public partial class MkLogFileC {
156 IntPtr file_cstr = Marshal.StringToHGlobalAnsi(file);
157 MkErrorE errVal =
Mk.MkLogFileOpen(IntPtr.Zero, fmtobj_hdl, file_cstr, out lfh_out);
158 Marshal.FreeHGlobal(file_cstr);
160 return (IntPtr)lfh_out;
170 IntPtr file_cstr = Marshal.StringToHGlobalAnsi(file);
171 MkErrorE errVal =
Mk.MkLogFileOpen(IntPtr.Zero, fmtobj_hdl, file_cstr, out lfh_out);
172 Marshal.FreeHGlobal(file_cstr);
174 return MkLogFileC.MkLogFileC_ObjCreate(lfh_out);
191 IntPtr text_cstr = Marshal.StringToHGlobalAnsi(text);
193 Marshal.FreeHGlobal(text_cstr);
204 return Marshal.PtrToStringAnsi(file_out);
MkErrorC - the class known as err or error is used to create and manage an error message …
static void Check(IntPtr ctx, MkErrorE err)
MkLogFileC - the class known as lfl or log-file is used to control the target of the logging-output …
static MkLogFileC MkLogFileC_ObjNew(IntPtr hdl)
MkObjectC - class known as obj or object is used as base-class type for a Programming-Language-Micro-...
static object atomObjNew(Type type, ConstructorInfo ctor, IntPtr obj)
static IntPtr getOBJ_null_allow(MkObjectC obj)
static object atomObjCreate(Type type, ConstructorInfo ctor, IntPtr obj)
static void atomSelfUnlink(IntPtr self, IntPtr env)
static object atomSelfNull(ConstructorInfo ctor)
static ConstructorInfo getCtor(Type type)
static IntPtr atomSelfCreate(ConstructorInfo ctor, IntPtr obj, IntPtr env)
#define MK_NULL
The Programming-Language-Micro-Kernel (PLMK) NULL value as null in C# …
new static MkLogFileC Instances()
C#: [static] MkLogFileC MkLogFileC.Instances() → C-API get head-instance from linked-list of MkL...
new static MkLogFileC GetNull()
C#: [static] MkLogFileC MkLogFileC.GetNull() → C-API Null-Slot - return a MkLogFileC typed NULL ...
new static MkLogFileC HandleResolve(Int32 netHdl)
C#: [static] MkLogFileC MkLogFileC.HandleResolve(Int32 netHdl) → C-API Handle-Resolve-Slot - ret...
new MkLogFileC Prev()
C#: MkLogFileC lfl.Prev() → C-API get previous instance from linked-list of MkLogFileS type
new MkLogFileC Next()
C#: MkLogFileC lfl.Next() → C-API get next instance from linked-list of MkLogFileS type
static MkLogFileC Open(MkObjectC fmtobj, string file)
C#: [constructor,static] MkLogFileC MkLogFileC.Open(MkObjectC fmtobj, string file) → C-API open ...
static IntPtr CTOR(MkObjectC fmtobj, string file)
C#: [constructor,static] MkLogFileC MkLogFileC.Open(MkObjectC fmtobj, string file) → C-API open ...
MkLogFileC(MkObjectC fmtobj, string file)
CONSTRUCTOR.
void WriteC(string text)
C#: lfl.WriteC(string text) → C-API write to log-file …
string GetFile()
C#: string lfl.GetFile() → C-API get the log-file …
MkErrorE
→ C-API: MkErrorE → C-API: MkErrorE