theKernel 10.0
Loading...
Searching...
No Matches
csmkkernel.MkBufferListC Class Reference

MkBufferListC - the class known as bfl or buffer-list is used to create and manage a list of MkBufferCMore...

+ Inheritance diagram for csmkkernel.MkBufferListC:
+ Collaboration diagram for csmkkernel.MkBufferListC:

Public Member Functions

 MkBufferListC (MkBufferListC copy)
  C#: [constructor] MkBufferListC bfl.Dup() C-API
Dup-Constructor - create a new MkBufferListC instance as copy from an existing MkBufferListC instance …
 
 MkBufferListC (params string[] args)
  C#: [constructor,static] MkBufferListC MkBufferListC.Create(int size = 0) C-API
Constructs a MkBufferListC instance with a argc/argv data from a list of strings …
 
 MkBufferListC (params object[] args)
  C#: [constructor,static] MkBufferListC MkBufferListC.Create(int size = 0) C-API
Constructs a MkBufferListC instance with a argc/argv data from a list of strings …
 
MkBufferListC AppendVC (string[] argv)
 append a argc/argv list of strings to an MkBufferListS object … → C-API: BufferListAppendVC
 
MkBufferListC AppendVA (params string[] argv)
 append a variable number of strings to an MkBufferListS object … → C-API: BufferListAppendVA
 
MkBufferListC AppendLA (MkBufferListC args)
  C#: MkBufferListC bfl.AppendLA(MkBufferListC args) C-API
append a variable number of MkBufferC object's to an MkBufferListC object using an other MkBufferListC OR a list of arguments (only in NON C)
 
MkBufferListC AppendLP (MkBufferListC addBufL, int position=-1)
  C#: MkBufferListC bfl.AppendLP(MkBufferListC addBufL, int position = -1) C-API
copy a MkBufferListS list into an MkBufferListS object on position
 
MkBufferListC AppendLA (params string[] args)
  C#: MkBufferListC bfl.AppendLA(MkBufferListC args) C-API
append a variable number of MkBufferC object's to an MkBufferListC object using an other MkBufferListC OR a list of arguments (only in NON C)
 
void AppendBIN (byte[] val)
  C#: doc_mk_cs_BufferListAppendBIN C-API
append a native PRIMITIVE TYPE object to a MkBufferListC
 
void AppendBOL (bool val)
  C#: doc_mk_cs_BufferListAppendBOL C-API
append a native PRIMITIVE TYPE object to a MkBufferListC
 
void AppendBUF (MkBufferC val)
  C#: bfl.AppendBUF(MkBufferC val) C-API
append a native PRIMITIVE TYPE object to a MkBufferListC
 
void AppendDBL (double val)
  C#: doc_mk_cs_BufferListAppendDBL C-API
append a native PRIMITIVE TYPE object to a MkBufferListC
 
void AppendFLT (float val)
  C#: doc_mk_cs_BufferListAppendFLT C-API
append a native PRIMITIVE TYPE object to a MkBufferListC
 
void AppendG (long val)
  C#: bfl.AppendG(long val) C-API
append a native PRIMITIVE TYPE object to a MkBufferListC
 
void AppendI16 (short val)
  C#: doc_mk_cs_BufferListAppendI16 C-API
append a native PRIMITIVE TYPE object to a MkBufferListC
 
void AppendI32 (int val)
  C#: doc_mk_cs_BufferListAppendI32 C-API
append a native PRIMITIVE TYPE object to a MkBufferListC
 
void AppendI64 (long val)
  C#: doc_mk_cs_BufferListAppendI64 C-API
append a native PRIMITIVE TYPE object to a MkBufferListC
 
void AppendI8 (byte val)
  C#: doc_mk_cs_BufferListAppendI8 C-API
append a native PRIMITIVE TYPE object to a MkBufferListC
 
void AppendSTR (string val)
  C#: doc_mk_cs_BufferListAppendSTR C-API
append a native PRIMITIVE TYPE object to a MkBufferListC
 
void AppendStringR (string val)
  C#: bfl.AppendStringR(string val) C-API
append a native PRIMITIVE TYPE object to a MkBufferListC
 
void AppendUP (MkBufferC addBuf, int position=-1)
  C#: bfl.AppendUP(MkBufferC addBuf, int position = -1) C-API
append a MkBufferC item into an MkBufferListC object on position
 
MkBufferC CheckOptionBUF (string opt, MkBufferC defval=null, bool onlyFirst=true)
  C#: MkBufferC bfl.CheckOptionBUF(string opt, MkBufferC defval = null, bool onlyFirst = true) C-API
search for opt in MkBufferListS list and fill var with opt_argument or the defval value …
 
bool CheckOption (string opt, bool onlyFirst=false)
  C#: bool bfl.CheckOption(string opt, bool onlyFirst = false) C-API
search for boolean option in MkBufferListS list and return MK_BOL value …
 
bool CheckOptionBOL (string opt, bool defval=false, bool onlyFirst=true)
  C#: doc_mk_cs_BufferListCheckOptionBOL C-API
search for opt in MkBufferListS list and fill var with opt_argument or the defval value …
 
double CheckOptionDBL (string opt, double defval=0, bool onlyFirst=true)
  C#: doc_mk_cs_BufferListCheckOptionDBL C-API
search for opt in MkBufferListS list and fill var with opt_argument or the defval value …
 
float CheckOptionFLT (string opt, float defval=0F, bool onlyFirst=true)
  C#: doc_mk_cs_BufferListCheckOptionFLT C-API
search for opt in MkBufferListS list and fill var with opt_argument or the defval value …
 
short CheckOptionI16 (string opt, short defval=0, bool onlyFirst=true)
  C#: doc_mk_cs_BufferListCheckOptionI16 C-API
search for opt in MkBufferListS list and fill var with opt_argument or the defval value …
 
int CheckOptionI32 (string opt, int defval=0, bool onlyFirst=true)
  C#: doc_mk_cs_BufferListCheckOptionI32 C-API
search for opt in MkBufferListS list and fill var with opt_argument or the defval value …
 
long CheckOptionI64 (string opt, long defval=0, bool onlyFirst=true)
  C#: doc_mk_cs_BufferListCheckOptionI64 C-API
search for opt in MkBufferListS list and fill var with opt_argument or the defval value …
 
byte CheckOptionI8 (string opt, byte defval=0, bool onlyFirst=true)
  C#: doc_mk_cs_BufferListCheckOptionI8 C-API
search for opt in MkBufferListS list and fill var with opt_argument or the defval value …
 
string CheckOptionSTR (string opt, string defval="", bool onlyFirst=true)
  C#: doc_mk_cs_BufferListCheckOptionSTR C-API
search for opt in MkBufferListS list and fill var with opt_argument or the defval value …
 
new MkBufferListC Next ()
  C#: MkBufferListC bfl.Next() C-API
get next instance from linked-list of MkBufferListS type
 
new MkBufferListC Prev ()
  C#: MkBufferListC bfl.Prev() C-API
get previous instance from linked-list of MkBufferListS type
 
MkBufferC IndexGetBUF (int index)
  C#: MkBufferC bfl.IndexGetBUF(int index) C-API
get the index element from MkBufferListC ... if not available… create it. …
 
MkBufferC IndexExtract (int index=0)
  C#: MkBufferC bfl.IndexExtract(int index = 0) C-API
extract (read & delete) the index object from bfl
 
MkBufferC IndexGet (int index)
  C#: MkBufferC bfl.IndexGet(int index) C-API
get (read only) the index object from bfl
 
void IndexDelete (int index, int numitems=1, bool doDelete=true)
  C#: bfl.IndexDelete(int index, int numitems = 1, bool doDelete = true) C-API
delete the index'th list item from the MkBufferListS object …
 
string IndexGetSTR (int index)
  C#: string bfl.IndexGetSTR(int index) C-API
get the index element from MkBufferListC ... as string. …
 
void IndexSet (int index, MkBufferC buf)
  C#: bfl.IndexSet(int index, MkBufferC buf) C-API
set the index object from bfl
 
void IndexSetBUF (int index, MkBufferC buf)
  C#: bfl.IndexSetBUF(int index, MkBufferC buf) C-API
set the index element from MkBufferListC ... if not available… createspace …
 
void IndexSetSTR (int index, string str)
  C#: bfl.IndexSetSTR(int index, string str) C-API
set the index element from MkBufferListC ... to string… if not available… create space …
 
void LogS (string varname="bfl", MkObjectC fmtobj=null, [CallerMemberName]string callfunc=null)
  C#: bfl.LogS(string varname = "bfl", MkObjectC fmtobj = null, [CallerMemberName]string callfunc = null) C-API
write the short-summary of the MkBufferListC to MkLogFileC (default: stderr) …
 
void LogSS (string varname="bfl", MkObjectC fmtobj=null, [CallerMemberName]string callfunc=null)
  C#: bfl.LogSS(string varname = "bfl", MkObjectC fmtobj = null, [CallerMemberName]string callfunc = null) C-API
write the very-short-summary of the MkBufferListC to MkLogFileC (default: stderr) …
 
void LogSSS (string varname="bfl", MkObjectC fmtobj=null, [CallerMemberName]string callfunc=null)
  C#: bfl.LogSSS(string varname = "bfl", MkObjectC fmtobj = null, [CallerMemberName]string callfunc = null) C-API
write the very-very-short-summary of the MkBufferListC to MkLogFileC (default: stderr) …
 
MkBufferListC PositionMerge (MkBufferListC source, int position)
  C#: MkBufferListC bfl.PositionMerge(MkBufferListC source, int position) C-API
merge a MkBufferListS list into an MkBufferListS object on position
 
MkBufferListC Reset ()
  C#: MkBufferListC bfl.Reset() C-API
reset a MkBufferListC object …
 
MkBufferListC Sort ()
  C#: MkBufferListC bfl.Sort() C-API
sort a MkBufferListC
 
MkBufferC ToBuffer ()
  C#: MkBufferC bfl.ToBuffer() C-API
Export a bfl into an MkBufferC using an MkBufferStreamC
 
int Cmp (MkBufferListC bfl2)
  C#: int bfl.Cmp(MkBufferListC bfl2) C-API
compare two buffer-list
 
void Copy (MkBufferListC src)
  C#: bfl.Copy(MkBufferListC src) C-API
copy all internal data from src to tgt
 
void Move (MkBufferListC from)
  C#: to.Move(MkBufferListC from) C-API
move all internal data from from to the end of to
 
void Reserve (int num)
  C#: bfl.Reserve(int num) C-API
reserve num items in a MkBufferListC object …
 
int SearchC (string str, int len=-1, int startindex=0)
  C#: int bfl.SearchC(string str, int len = -1, int startindex = 0) C-API
search MK_STR item from a MkBufferListS object starting at startindex
 
int Size ()
  C#: int bfl.Size() C-API
get the number-of-items in the bfl
 
MkBufferListC Merge ()
  C#: [constructor] MkBufferListC bfl.Merge() C-API
Merge-Constructor - constructs a MkBufferListC instance as a merge from an existing MkBufferListC instance …
 
MkBufferListC Dup ()
  C#: [constructor] MkBufferListC bfl.Dup() C-API
Dup-Constructor - create a new MkBufferListC instance as copy from an existing MkBufferListC instance …
 
 MkBufferListC (int size=0)
 CONSTRUCTOR.
 
List< object > ToList ()
  C#: List<object> bfl.ToList() C-API
get a target-language list representation of the bfl
 
- Public Member Functions inherited from csmkkernel.MkObjectC
delegate void MkObjectDeleteSCB (string typeName, int typeHdl, int objHdl)
 implements the csmkkernel API object: public version from MkObjectDeleteSCB as method
 
void ErrorCheck (MkErrorE err)
 
bool Check ()
 
string ToNameOfClass ()
  C#: string obj.ToNameOfClass() C-API
Class-Slot - returns the C#-Class-Name of the obj as string
 
void HandleDelete ()
  C#: netObj.HandleDelete() C-API
Handle-Delete-Slot - delete a netObj from handle-storage …
 
bool HandleExists ()
  C#: bool obj.HandleExists() C-API
check if obj has already a handle defined…
 
Int32 HandleGet ()
  C#: Int32 obj.HandleGet() C-API
Handle-Get-Slot - returns a export-hdl to the MkObjectC useable for external storage
 
Int32 HandleGetOfType ()
  C#: Int32 obj.HandleGetOfType() C-API
Export-Slot - returns typeHdl of the obj .
 
Int32 HandleGetOr0 ()
  C#: Int32 obj.HandleGetOr0() C-API
return export-hdl or 0 in not created…
 
MkObjectC Next ()
  C#: MkObjectC obj.Next() C-API
get next instance from linked-list of MkObjectS type
 
MkObjectC Prev ()
  C#: MkObjectC obj.Prev() C-API
get previous instance from linked-list of MkObjectS type
 
void DbgDump (string message="var", [CallerMemberName]string callfunc=null)
  C#: obj.DbgDump(string message = "var", [CallerMemberName]string callfunc = null) C-API
debug: Dump a instance to stderr with LNG and MQ internal data…
 
void DbgL (string message, int debug=0, [CallerMemberName]string callfunc=null, int lvl=0)
  C#: fmtobj.DbgL(string message, int debug = 0, [CallerMemberName]string callfunc = null, int lvl = 0) C-API
debug: write a instance-marker to the MkLogFileC (default: stderr) using the fmtobj as prefix …
 
void DbgLogC ([CallerMemberName]string callfunc=null)
  C#: obj.DbgLogC([CallerMemberName]string callfunc = null) C-API
debug: write a short-obj-summary to MkLogFileC (default: stderr) …
 
void DbgO ([CallerMemberName]string callfunc=null)
  C#: obj.DbgO([CallerMemberName]string callfunc = null) C-API
debug: write the object-details to MkLogFileC (default: stderr) …
 
void DbgSTACK (int skip=0, int num=-1, [CallerMemberName]string callfunc=null)
  C#: fmtobj.DbgSTACK(int skip = 0, int num = -1, [CallerMemberName]string callfunc = null) C-API
debug: write the stack-trace to MkLogFileC (default: stderr) …
 
void LogC (string message, int debug=0, [CallerMemberName]string callfunc=null)
  C#: fmtobj.LogC(string message, int debug = 0, [CallerMemberName]string callfunc = null) C-API
write a logging-message to MkLogFileC (default: stderr) using the internal format …
 
void LogHEX (string callfunc, byte[] data)
  C#: fmtobj.LogHEX(string callfunc, byte[] data) C-API
log binaray data as HEX into the MkLogFileC (default: stderr) …
 
void Log (MkObjectC fmtobj=null, int debug=0, [CallerMemberName]string callfunc=null, int lvl=0)
  C#: obj.Log(MkObjectC fmtobj = null, int debug = 0, [CallerMemberName]string callfunc = null, int lvl = 0) C-API
Log-Slot - log a summary of an object to the MkLogFileC (default: stderr) target …
 
void LogLong (MkObjectC fmtobj=null, int debug=0, [CallerMemberName]string callfunc=null, int lvl=0)
  C#: obj.LogLong(MkObjectC fmtobj = null, int debug = 0, [CallerMemberName]string callfunc = null, int lvl = 0) C-API
log the MkObjectS verbose into the MkLogFileC (default: stderr) …
 
void LogShort (MkObjectC fmtobj=null, int debug=0, [CallerMemberName]string callfunc=null, int lvl=0)
  C#: obj.LogShort(MkObjectC fmtobj = null, int debug = 0, [CallerMemberName]string callfunc = null, int lvl = 0) C-API
log the MkObjectS into the MkLogFileC (default: stderr) …
 
void LogType (MkObjectC fmtobj=null, int debug=0, [CallerMemberName]string callfunc=null, int lvl=0)
  C#: obj.LogType(MkObjectC fmtobj = null, int debug = 0, [CallerMemberName]string callfunc = null, int lvl = 0) C-API
log the tyoe of the MkObjectS into the MkLogFileC (default: stderr) …
 
MkErrorC ErrorCatch (Exception exception=null, [CallerMemberName]string callfunc=null)
  C#: MkErrorC obj.ErrorCatch(Exception exception = null, [CallerMemberName]string callfunc = null) C-API
convert a programming-language-error into an csmkkernel error …
 
MkErrorC ToError ()
  C#: MkErrorC obj.ToError() C-API
Error-Slot - return an error-object pre initialized with obj data.
 
bool IsNull ()
  C#: bool obj.IsNull() C-API
ckeck if the object is null
 
string ToName ()
  C#: string obj.ToName() C-API
Info-Slot - returns brief information about the obj as a string
 
string ToNameOfType ()
  C#: string obj.ToNameOfType() C-API
Type-Slot - returns the LibMkKernel-Type-Name of the obj as a string
 
override string ToString ()
  C#: string inst.ToString() C-API
String-Slot - returns the string representation of the inst
 
int RefGet ()
 MkRefGetP
 
void SysKill (int pid, int signal)
 MkSysKill
 
int SysGetPid ()
 MkSysGetPid
 
void Dispose ()
  C#: [destructor] obj.Dispose() C-API
Dispose-Slot - untie the connection between the Native-C#-Instance and the csmkkernel-Instance.
 
void Delete ()
  C#: [destructor] obj.Delete() C-API
Delete-Slot - delete an instance.
 

Static Public Member Functions

static MkBufferListC MkBufferListC_ObjNew (IntPtr hdl)
 
new static MkBufferListC HandleResolve (Int32 netHdl)
  C#: [static] MkBufferListC MkBufferListC.HandleResolve(Int32 netHdl) C-API
Handle-Resolve-Slot - return a MkBufferListC from netHdl or null if invalid…
 
new static MkBufferListC Instances ()
  C#: [static] MkBufferListC MkBufferListC.Instances() C-API
get head-instance from linked-list of MkBufferListS type …
 
new static MkBufferListC GetNull ()
  C#: [static] MkBufferListC MkBufferListC.GetNull() C-API
Null-Slot - return a MkBufferListC typed NULL instance …
 
static MkBufferListC FileGlob (string pattern_match)
  C#: [constructor,static] MkBufferListC MkBufferListC.FileGlob(string pattern_match) C-API
create a new MkBufferListC using the result from a filesystem glob operation …
 
static MkBufferListC Create (int size=0)
  C#: [constructor,static] MkBufferListC MkBufferListC.Create(int size = 0) C-API
Constructs a MkBufferC instance with size storage…
 
static MkBufferListC CreateLA (MkBufferListC args)
  C#: [constructor,static] MkBufferListC MkBufferListC.CreateLA(MkBufferListC args) C-API
Constructs a MkBufferListC instance with an other MkBufferListC OR a list of arguments (only in NON C)
 
static MkBufferListC CreateLA (params string[] args)
  C#: [constructor,static] MkBufferListC MkBufferListC.CreateLA(MkBufferListC args) C-API
Constructs a MkBufferListC instance with an other MkBufferListC OR a list of arguments (only in NON C)
 
static MkBufferListC CreateTLS (string tlsName, bool resetB=true)
  C#: [static] MkBufferListC MkBufferListC.CreateTLS(string tlsName, bool resetB = true) C-API
same as BufferListCreate but require no cleanup …
 
- Static Public Member Functions inherited from csmkkernel.MkObjectC
static MkObjectC MkObjectC_ObjNew (IntPtr hdl)
 
static IntPtr getOBJ (string cls, MkObjectC obj)
 
static IntPtr getOBJ_null_allow (MkObjectC obj)
 
static MkObjectC HandleResolve (Int32 netHdl)
  C#: [static] MkObjectC MkObjectC.HandleResolve(Int32 netHdl) C-API
Handle-Resolve-Slot - return a MkObjectC from netHdl or null if invalid…
 
static void HandleDeleteByNetHdl (Int32 netHdl)
  C#: [static] MkObjectC.HandleDeleteByNetHdl(Int32 netHdl) C-API
Handle-Delete-Slot - delete a netHdl from handle-storage …
 
static MkObjectC Instances ()
  C#: [static] MkObjectC MkObjectC.Instances() C-API
get head-instance from linked-list of MkObjectS type …
 
static MkObjectC GetNull ()
  C#: [static] MkObjectC MkObjectC.GetNull() C-API
Null-Slot - return a MkObjectC typed NULL instance …
 
static void DbgM (string message, int debug=0, [CallerMemberName]string callfunc=null, int lvl=0)
  C#: [static] MkObjectC.DbgM(string message, int debug = 0, [CallerMemberName]string callfunc = null, int lvl = 0) C-API
debug: write a static-marker to the MkLogFileC (default: stderr) …
 
static int SysHashI32 (string key, int length=-1)
 MkSysHashI32
 
static string SysHashSTR (string key, int length=-1)
 MkSysHashSTR
 
static void DeleteCallbackCleanup (string ident)
  C#: [static] MkObjectC.DeleteCallbackCleanup(string ident) C-API
cleanup the DeleteCallback installed with MkObjectDeleteCallbackSetup
 
static void DeleteCallbackSetup (string ident, MkObjectDeleteSCB callback=null, string filter=null)
  C#: [static] MkObjectC.DeleteCallbackSetup(string ident, MkObjectDeleteSCB callback = null, string filter = null) C-API
Create/Delete the instance-delete-callback
 
static int getPId ()
 
static int getTId ()
 
static string getStackTrace (int level=2)
 
static string getCallerProc (int level=2)
 
static int getCallerLine (int level=2)
 
static string getCallerFile (int level=2)
 

Static Protected Member Functions

static IntPtr CTOR (int size=0)
  C#: [constructor,static] MkBufferListC MkBufferListC.Create(int size = 0) C-API
Constructs a MkBufferC instance with size storage…
 
- Static Protected Member Functions inherited from csmkkernel.MkObjectC
static object atomObjNew (Type type, ConstructorInfo ctor, IntPtr obj)
 
static object atomObjCreate (Type type, ConstructorInfo ctor, IntPtr obj)
 
static IntPtr atomSelfCreate (ConstructorInfo ctor, IntPtr obj, IntPtr env)
 
static object atomSelfNull (ConstructorInfo ctor)
 
static void atomSelfUnlink (IntPtr self, IntPtr env)
 
static ConstructorInfo getCtor (Type type)
 
static string Name (IntPtr mkrt, IntPtr obj)
  C#: string obj.ToName() C-API
Info-Slot - returns brief information about the obj as a string
 

Additional Inherited Members

- Protected Member Functions inherited from csmkkernel.MkObjectC
 MkObjectC (IntPtr obj)
 
 MkObjectC ()
 
virtual void Dispose (bool disposing)
 Support IDisposable.
 
- Protected Attributes inherited from csmkkernel.MkObjectC
IntPtr pmkrt = IntPtr.Zero
 
- Package Functions inherited from csmkkernel.MkObjectC
- Static Package Functions inherited from csmkkernel.MkObjectC
- Properties inherited from csmkkernel.MkObjectC
IntPtr hdl [get, set]
 
IntPtr hdl_null_allow [get, set]
 
IntPtr mkrt [get, set]
 

Detailed Description

MkBufferListC - the class known as bfl or buffer-list is used to create and manage a list of MkBufferC

The MkBufferListC is used to store a list of MkBufferC data into an array. In contrast to the MkBufferStreamC, each individual item can be accessed directly with the MkBufferListC.

MkBufferListC CLASS

The CLASS used to store a list of MkBufferS items into a flat array…

C-Kernel-Details

The CLASS MkBufferListS is used to store a list of MkBufferS into an MkBufferListS::data array. To access an MkBufferS item use:

‍0 <= index < MkBufferListS::cursize

A new MkBufferListS is always preallocated with the predefined ILS-storage (MkBufferListS::bls), but can switch to a MALLOC-storage if the storage requirements of the user exceed the predefined ILS-storage-size (MkBufferListS_bls_size).

‍A MkBufferListS never run out of storage.

See also
MkBufferC, MkBufferStreamC

MkBufferListC CTOR / DTOR

command alias
[constructor,static] MkBufferListC MkBufferListC.Create(int size = 0) csmkkernel.MkBufferListC(int num = 0)
[destructor] bfl.Delete() bfl.Dispose()

Definition at line 721 of file MkBufferListC.cs.

Constructor & Destructor Documentation

◆ MkBufferListC() [1/3]

csmkkernel.MkBufferListC.MkBufferListC ( MkBufferListC copy)
inline

C#: [constructor] MkBufferListC bfl.Dup() C-API
Dup-Constructor - create a new MkBufferListC instance as copy from an existing MkBufferListC instance …

Definition at line 71 of file MkBufferListC.cs.

71 {
72 if (Mk.MkRefGet(copy.hdl) > 1) {
73 atomCreate(Mk.MkBufferListDup(mkrt,copy.hdl));
74 } else {
75 IntPtr bkp = copy.hdl;
76 Mk.MkRefIncr(bkp);
77 copy.Dispose();
78 atomCreate(bkp);
79 Mk.MkRefDecr(mkrt,bkp);
80 bkp = IntPtr.Zero;
81 }
82 }
csmkkernel.MkKernel Mk

◆ MkBufferListC() [2/3]

csmkkernel.MkBufferListC.MkBufferListC ( params string[] args)
inline

C#: [constructor,static] MkBufferListC MkBufferListC.Create(int size = 0) C-API
Constructs a MkBufferListC instance with a argc/argv data from a list of strings …

Definition at line 85 of file MkBufferListC.cs.

85 : base(CTOR(args.Length)) {
86 if (args.Length != 0) {
87 foreach (string a in args) {
88 IntPtr a_cstr = Marshal.StringToHGlobalAnsi(a);
89 Mk.MkBufferListAppendSTR(mkrt, hdl, a_cstr);
90 Marshal.FreeHGlobal(a_cstr);
91 }
92 }
93 }
static IntPtr CTOR(int size=0)
C#: [constructor,static] MkBufferListC MkBufferListC.Create(int size = 0) → C-API Constructs a M...

◆ MkBufferListC() [3/3]

csmkkernel.MkBufferListC.MkBufferListC ( params object[] args)
inline

C#: [constructor,static] MkBufferListC MkBufferListC.Create(int size = 0) C-API
Constructs a MkBufferListC instance with a argc/argv data from a list of strings …

Definition at line 96 of file MkBufferListC.cs.

96 : base(CTOR(args.Length)) {
97 if (args.Length != 0) {
98 foreach (object a in args) {
99 IntPtr a_cstr = Marshal.StringToHGlobalAnsi((string)a);
100 Mk.MkBufferListAppendSTR(mkrt, hdl, a_cstr);
101 Marshal.FreeHGlobal(a_cstr);
102 }
103 }
104 }

Member Function Documentation

◆ AppendVA()

MkBufferListC csmkkernel.MkBufferListC.AppendVA ( params string[] argv)
inline

append a variable number of strings to an MkBufferListS object … → C-API: BufferListAppendVA

Definition at line 117 of file MkBufferListC.cs.

117 {
118 foreach (string a in argv) {
119 IntPtr a_cstr = Marshal.StringToHGlobalAnsi(a);
120 Mk.MkBufferListAppendSTR(mkrt, hdl, a_cstr);
121 Marshal.FreeHGlobal(a_cstr);
122 }
123 return this;
124 }

◆ AppendVC()

MkBufferListC csmkkernel.MkBufferListC.AppendVC ( string[] argv)
inline

append a argc/argv list of strings to an MkBufferListS object … → C-API: BufferListAppendVC

Definition at line 107 of file MkBufferListC.cs.

107 {
108 foreach (string a in argv) {
109 IntPtr a_cstr = Marshal.StringToHGlobalAnsi(a);
110 Mk.MkBufferListAppendSTR(mkrt, hdl, a_cstr);
111 Marshal.FreeHGlobal(a_cstr);
112 }
113 return this;
114 }

◆ MkBufferListC_ObjNew()

static MkBufferListC csmkkernel.MkBufferListC.MkBufferListC_ObjNew ( IntPtr hdl)
inlinestatic

Definition at line 36 of file MkBufferListC.cs.

36 {
37 return hdl != IntPtr.Zero ? (MkBufferListC) atomObjNew(typeof(MkBufferListC), ctor, hdl) : MK_NULL.Value;
38 }
static object atomObjNew(Type type, ConstructorInfo ctor, IntPtr obj)
Definition MkObjectC.cs:189
+ Here is the caller graph for this function:

The documentation for this class was generated from the following file: