theKernel 10.0
Loading...
Searching...
No Matches
MkBufferListC_Misc_CS_API

MkBufferListC - various functions to work on a MkBufferListSMore...

+ Collaboration diagram for MkBufferListC_Misc_CS_API:

Functions

static MkBufferListC csmkkernel.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 …
 
MkBufferListC csmkkernel.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 csmkkernel.MkBufferListC.Reset ()
  C#: MkBufferListC bfl.Reset() C-API
reset a MkBufferListC object …
 
MkBufferListC csmkkernel.MkBufferListC.Sort ()
  C#: MkBufferListC bfl.Sort() C-API
sort a MkBufferListC
 
MkBufferC csmkkernel.MkBufferListC.ToBuffer ()
  C#: MkBufferC bfl.ToBuffer() C-API
Export a bfl into an MkBufferC using an MkBufferStreamC
 
int csmkkernel.MkBufferListC.Cmp (MkBufferListC bfl2)
  C#: int bfl.Cmp(MkBufferListC bfl2) C-API
compare two buffer-list
 
void csmkkernel.MkBufferListC.Copy (MkBufferListC src)
  C#: bfl.Copy(MkBufferListC src) C-API
copy all internal data from src to tgt
 
void csmkkernel.MkBufferListC.Move (MkBufferListC from)
  C#: to.Move(MkBufferListC from) C-API
move all internal data from from to the end of to
 
void csmkkernel.MkBufferListC.Reserve (int num)
  C#: bfl.Reserve(int num) C-API
reserve num items in a MkBufferListC object …
 
int csmkkernel.MkBufferListC.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 csmkkernel.MkBufferListC.Size ()
  C#: int bfl.Size() C-API
get the number-of-items in the bfl
 
List< object > csmkkernel.MkBufferListC.ToList ()
  C#: List<object> bfl.ToList() C-API
get a target-language list representation of the bfl
 

Detailed Description

MkBufferListC - various functions to work on a MkBufferListS

Function Documentation

◆ Cmp()

int csmkkernel.MkBufferListC.Cmp ( MkBufferListC bfl2)
inline

C#: int bfl.Cmp(MkBufferListC bfl2) C-API
compare two buffer-list

Definition at line 592 of file MkBufferListC.cs.

592 {
593 IntPtr bfl2_hdl = MkBufferListC.getOBJ("MkBufferListC",bfl2);
594 Int32 __retVal__L = Mk.MkBufferListCmp(mkrt, hdl, bfl2_hdl);
595 return __retVal__L;
596 }
csmkkernel.MkKernel Mk

◆ Copy()

void csmkkernel.MkBufferListC.Copy ( MkBufferListC src)
inline

C#: bfl.Copy(MkBufferListC src) C-API
copy all internal data from src to tgt

Definition at line 599 of file MkBufferListC.cs.

599 {
600 IntPtr src_hdl = MkBufferListC.getOBJ("MkBufferListC",src);
601 Mk.MkBufferListCopy(mkrt, hdl, src_hdl);
602 }

◆ FileGlob()

static MkBufferListC csmkkernel.MkBufferListC.FileGlob ( string pattern_match)
inlinestatic

C#: [constructor,static] MkBufferListC MkBufferListC.FileGlob(string pattern_match) C-API
create a new MkBufferListC using the result from a filesystem glob operation …

Definition at line 552 of file MkBufferListC.cs.

552 {
553 IntPtr pattern_match_cstr = Marshal.StringToHGlobalAnsi(pattern_match);
554 IntPtr __retVal__L = Mk.MkBufferListFileGlob(IntPtr.Zero, pattern_match_cstr);
555 Marshal.FreeHGlobal(pattern_match_cstr);
556 if (__retVal__L == IntPtr.Zero) {
557 throw new MkInitError("MkBufferListC.FileGlob");
558 }
559 return MkBufferListC.MkBufferListC_ObjCreate(__retVal__L);
560 }

◆ Move()

void csmkkernel.MkBufferListC.Move ( MkBufferListC from)
inline

C#: to.Move(MkBufferListC from) C-API
move all internal data from from to the end of to

Definition at line 605 of file MkBufferListC.cs.

605 {
606 IntPtr from_hdl = MkBufferListC.getOBJ("MkBufferListC",from);
607 Mk.MkBufferListMove(mkrt, hdl, from_hdl);
608 }

◆ PositionMerge()

MkBufferListC csmkkernel.MkBufferListC.PositionMerge ( MkBufferListC source,
int position )
inline

C#: MkBufferListC bfl.PositionMerge(MkBufferListC source, int position) C-API
merge a MkBufferListS list into an MkBufferListS object on position

Definition at line 565 of file MkBufferListC.cs.

565 {
566 IntPtr source_hdl = MkBufferListC.getOBJ("MkBufferListC",source);
567 IntPtr __retVal__L = Mk.MkBufferListPositionMerge(mkrt, hdl, source_hdl, position);
568 return MkBufferListC.MkBufferListC_ObjNew(__retVal__L);
569 }

◆ Reserve()

void csmkkernel.MkBufferListC.Reserve ( int num)
inline

C#: bfl.Reserve(int num) C-API
reserve num items in a MkBufferListC object …

Definition at line 611 of file MkBufferListC.cs.

611 {
612 Mk.MkBufferListReserve(mkrt, hdl, num);
613 }

◆ Reset()

MkBufferListC csmkkernel.MkBufferListC.Reset ( )
inline

C#: MkBufferListC bfl.Reset() C-API
reset a MkBufferListC object …

Definition at line 572 of file MkBufferListC.cs.

572 {
573 IntPtr __retVal__L = Mk.MkBufferListReset(mkrt, hdl);
574 return MkBufferListC.MkBufferListC_ObjNew(__retVal__L);
575 }

◆ SearchC()

int csmkkernel.MkBufferListC.SearchC ( string str,
int len = -1,
int startindex = 0 )
inline

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

Definition at line 616 of file MkBufferListC.cs.

616 {
617 IntPtr str_cstr = Marshal.StringToHGlobalAnsi(str);
618 Int32 __retVal__L = Mk.MkBufferListSearchC(mkrt, hdl, str_cstr, len, startindex);
619 Marshal.FreeHGlobal(str_cstr);
620 return __retVal__L;
621 }

◆ Size()

int csmkkernel.MkBufferListC.Size ( )
inline

C#: int bfl.Size() C-API
get the number-of-items in the bfl

Definition at line 624 of file MkBufferListC.cs.

624 {
625 Int32 __retVal__L = Mk.MkBufferListSize(mkrt, hdl);
626 return __retVal__L;
627 }

◆ Sort()

MkBufferListC csmkkernel.MkBufferListC.Sort ( )
inline

C#: MkBufferListC bfl.Sort() C-API
sort a MkBufferListC

Definition at line 578 of file MkBufferListC.cs.

578 {
579 IntPtr __retVal__L = Mk.MkBufferListSort(mkrt, hdl);
580 return MkBufferListC.MkBufferListC_ObjNew(__retVal__L);
581 }

◆ ToBuffer()

MkBufferC csmkkernel.MkBufferListC.ToBuffer ( )
inline

C#: MkBufferC bfl.ToBuffer() C-API
Export a bfl into an MkBufferC using an MkBufferStreamC

Definition at line 584 of file MkBufferListC.cs.

584 {
585 IntPtr __retVal__L = Mk.MkBufferListToBuffer(mkrt, hdl);
586 return MkBufferC.MkBufferC_ObjNew(__retVal__L);
587 }

◆ ToList()

List< object > csmkkernel.MkBufferListC.ToList ( )
inline

C#: List<object> bfl.ToList() C-API
get a target-language list representation of the bfl

Definition at line 724 of file MkBufferListC.cs.

724 {
725 int sz = Size();
726 List<object> ret = new List<object>(sz);
727 for (int i=0; i<sz; i++) {
728 ret.Add(IndexGet(i).ToObject());
729 }
730 return ret;
731 }
MkBufferC IndexGet(int index)
C#: MkBufferC bfl.IndexGet(int index) → C-API get (read only) the index object from bfl …
int Size()
C#: int bfl.Size() → C-API get the number-of-items in the bfl …
+ Here is the caller graph for this function: