theKernel 10.0
Loading...
Searching...
No Matches
MkBufferListC_Index_CS_API

MkBufferListC - various functions to access a MkBufferListS by indexMore...

+ Collaboration diagram for MkBufferListC_Index_CS_API:

Functions

MkBufferC csmkkernel.MkBufferListC.IndexGetBUF (int index)
  C#: MkBufferC bfl.IndexGetBUF(int index) C-API
get the index element from MkBufferListC ... if not available… create it. …
 
MkBufferC csmkkernel.MkBufferListC.IndexExtract (int index=0)
  C#: MkBufferC bfl.IndexExtract(int index = 0) C-API
extract (read & delete) the index object from bfl
 
MkBufferC csmkkernel.MkBufferListC.IndexGet (int index)
  C#: MkBufferC bfl.IndexGet(int index) C-API
get (read only) the index object from bfl
 
void csmkkernel.MkBufferListC.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 csmkkernel.MkBufferListC.IndexGetSTR (int index)
  C#: string bfl.IndexGetSTR(int index) C-API
get the index element from MkBufferListC ... as string. …
 
void csmkkernel.MkBufferListC.IndexSet (int index, MkBufferC buf)
  C#: bfl.IndexSet(int index, MkBufferC buf) C-API
set the index object from bfl
 
void csmkkernel.MkBufferListC.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 csmkkernel.MkBufferListC.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 …
 

Detailed Description

MkBufferListC - various functions to access a MkBufferListS by index

Function Documentation

◆ IndexDelete()

void csmkkernel.MkBufferListC.IndexDelete ( int index,
int numitems = 1,
bool doDelete = true )
inline

C#: bfl.IndexDelete(int index, int numitems = 1, bool doDelete = true) C-API
delete the index'th list item from the MkBufferListS object …

Definition at line 464 of file MkBufferListC.cs.

464 {
465 MkErrorE errVal = Mk.MkBufferListIndexDelete(mkrt, hdl, index, numitems, doDelete);
466 MkErrorC.Check(hdl, errVal);
467 }
csmkkernel.MkKernel Mk
MkErrorE
collection for the different error-codes …

◆ IndexExtract()

MkBufferC csmkkernel.MkBufferListC.IndexExtract ( int index = 0)
inline

C#: MkBufferC bfl.IndexExtract(int index = 0) C-API
extract (read & delete) the index object from bfl

Definition at line 446 of file MkBufferListC.cs.

446 {
447 IntPtr val_out;
448 MkErrorE errVal = Mk.MkBufferListIndexExtract(mkrt, hdl, index, out val_out);
449 MkErrorC.Check(hdl, errVal);
450 return MkBufferC.MkBufferC_ObjNew(val_out);
451 }

◆ IndexGet()

MkBufferC csmkkernel.MkBufferListC.IndexGet ( int index)
inline

C#: MkBufferC bfl.IndexGet(int index) C-API
get (read only) the index object from bfl

Definition at line 454 of file MkBufferListC.cs.

454 {
455 IntPtr val_out;
456 MkErrorE errVal = Mk.MkBufferListIndexGet(mkrt, hdl, index, out val_out);
457 MkErrorC.Check(hdl, errVal);
458 return MkBufferC.MkBufferC_ObjNew(val_out);
459 }

◆ IndexGetBUF()

MkBufferC csmkkernel.MkBufferListC.IndexGetBUF ( int index)
inline

C#: MkBufferC bfl.IndexGetBUF(int index) C-API
get the index element from MkBufferListC ... if not available… create it. …

Definition at line 438 of file MkBufferListC.cs.

438 {
439 IntPtr __retVal__L = Mk.MkBufferListIndexGetBUF(mkrt, hdl, index);
440 return MkBufferC.MkBufferC_ObjNew(__retVal__L);
441 }

◆ IndexGetSTR()

string csmkkernel.MkBufferListC.IndexGetSTR ( int index)
inline

C#: string bfl.IndexGetSTR(int index) C-API
get the index element from MkBufferListC ... as string. …

Definition at line 470 of file MkBufferListC.cs.

470 {
471 IntPtr __retVal__L = Mk.MkBufferListIndexGetSTR(mkrt, hdl, index);
472 return Marshal.PtrToStringAnsi(__retVal__L);
473 }

◆ IndexSet()

void csmkkernel.MkBufferListC.IndexSet ( int index,
MkBufferC buf )
inline

C#: bfl.IndexSet(int index, MkBufferC buf) C-API
set the index object from bfl

Definition at line 476 of file MkBufferListC.cs.

476 {
477 IntPtr buf_hdl = MkBufferC.getOBJ("MkBufferC",buf);
478 MkErrorE errVal = Mk.MkBufferListIndexSet(mkrt, hdl, index, buf_hdl);
479 MkErrorC.Check(hdl, errVal);
480 }

◆ IndexSetBUF()

void csmkkernel.MkBufferListC.IndexSetBUF ( int index,
MkBufferC buf )
inline

C#: bfl.IndexSetBUF(int index, MkBufferC buf) C-API
set the index element from MkBufferListC ... if not available… createspace …

Definition at line 483 of file MkBufferListC.cs.

483 {
484 IntPtr buf_hdl = MkBufferC.getOBJ("MkBufferC",buf);
485 Mk.MkBufferListIndexSetBUF(mkrt, hdl, index, buf_hdl);
486 }

◆ IndexSetSTR()

void csmkkernel.MkBufferListC.IndexSetSTR ( int index,
string str )
inline

C#: bfl.IndexSetSTR(int index, string str) C-API
set the index element from MkBufferListC ... to string… if not available… create space …

Definition at line 489 of file MkBufferListC.cs.

489 {
490 IntPtr str_cstr = Marshal.StringToHGlobalAnsi(str);
491 Mk.MkBufferListIndexSetSTR(mkrt, hdl, index, str_cstr);
492 Marshal.FreeHGlobal(str_cstr);
493 }