theKernel 10.0
Loading...
Searching...
No Matches
MkBufferC_TOR_CS_API

MkBufferC - various functions to create, initialize and destroy a MkBufferCMore...

+ Collaboration diagram for MkBufferC_TOR_CS_API:

Functions

MkBufferC csmkkernel.MkBufferC.Merge ()
  C#: [constructor] MkBufferC buf.Merge() C-API
Merge-Constructor - create a new MkBufferC as a merge from an existing object …
 
MkBufferC csmkkernel.MkBufferC.Dup ()
  C#: [constructor] MkBufferC buf.Dup() C-API
Dup-Constructor - create a new MkBufferC instance as copy from an existing MkBufferC instance
 
static IntPtr csmkkernel.MkBufferC.CTOR (int size=0)
  C#: [constructor,static] MkBufferC MkBufferC.Create(int size = 0) C-API
Constructor - create a new MkBufferC with minimum size of internal storage …
 
 csmkkernel.MkBufferC.MkBufferC (int size=0)
 CONSTRUCTOR.
 
static MkBufferC csmkkernel.MkBufferC.Create (int size=0)
  C#: [constructor,static] MkBufferC MkBufferC.Create(int size = 0) C-API
Constructor - create a new MkBufferC with minimum size of internal storage …
 
static MkBufferC csmkkernel.MkBufferC.Create1024 (int size=0)
  C#: [constructor,static] MkBufferC MkBufferC.Create1024(int size = 0) C-API
call the BufferCreate with default type MkBuffer1024S (1024 byte) …
 
static MkBufferC csmkkernel.MkBufferC.Create256 (int size=0)
  C#: [constructor,static] MkBufferC MkBufferC.Create256(int size = 0) C-API
call the BufferCreate with default type MkBuffer256S (256 byte) …
 
static MkBufferC csmkkernel.MkBufferC.Create64 (int size=0)
  C#: [constructor,static] MkBufferC MkBufferC.Create64(int size = 0) C-API
call the BufferCreate with default type MkBuffer64S (64 byte) …
 
static MkBufferC csmkkernel.MkBufferC.CreateBIN (byte[] val)
  C#: doc_mk_cs_BufferCreateBIN C-API
Constructor - create a new MkBufferC with an PRIMITIVE TYPE
 
static MkBufferC csmkkernel.MkBufferC.CreateBOL (bool val)
  C#: doc_mk_cs_BufferCreateBOL C-API
Constructor - create a new MkBufferC with an PRIMITIVE TYPE
 
static MkBufferC csmkkernel.MkBufferC.CreateBUF (MkBufferC val)
  C#: [constructor,static] MkBufferC MkBufferC.CreateBUF(MkBufferC val) C-API
Constructor - create a new MkBufferC with an PRIMITIVE TYPE
 
static MkBufferC csmkkernel.MkBufferC.CreateDBL (double val)
  C#: doc_mk_cs_BufferCreateDBL C-API
Constructor - create a new MkBufferC with an PRIMITIVE TYPE
 
static MkBufferC csmkkernel.MkBufferC.CreateFLT (float val)
  C#: doc_mk_cs_BufferCreateFLT C-API
Constructor - create a new MkBufferC with an PRIMITIVE TYPE
 
static MkBufferC csmkkernel.MkBufferC.CreateI16 (short val)
  C#: doc_mk_cs_BufferCreateI16 C-API
Constructor - create a new MkBufferC with an PRIMITIVE TYPE
 
static MkBufferC csmkkernel.MkBufferC.CreateI32 (int val)
  C#: doc_mk_cs_BufferCreateI32 C-API
Constructor - create a new MkBufferC with an PRIMITIVE TYPE
 
static MkBufferC csmkkernel.MkBufferC.CreateI64 (long val)
  C#: doc_mk_cs_BufferCreateI64 C-API
Constructor - create a new MkBufferC with an PRIMITIVE TYPE
 
static MkBufferC csmkkernel.MkBufferC.CreateI8 (byte val)
  C#: doc_mk_cs_BufferCreateI8 C-API
Constructor - create a new MkBufferC with an PRIMITIVE TYPE
 
static MkBufferC csmkkernel.MkBufferC.CreateSTR (string val)
  C#: doc_mk_cs_BufferCreateSTR C-API
Constructor - create a new MkBufferC with an PRIMITIVE TYPE
 
static MkBufferC csmkkernel.MkBufferC.CreateTLS (string tlsName, bool resetB=true)
  C#: [static] MkBufferC MkBufferC.CreateTLS(string tlsName, bool resetB = true) C-API
same as BufferCreate but require no cleanup
 

Detailed Description

MkBufferC - various functions to create, initialize and destroy a MkBufferC

Function Documentation

◆ Create()

static MkBufferC csmkkernel.MkBufferC.Create ( int size = 0)
inlinestatic

C#: [constructor,static] MkBufferC MkBufferC.Create(int size = 0) C-API
Constructor - create a new MkBufferC with minimum size of internal storage …

Definition at line 566 of file MkBufferC.cs.

566 {
567 IntPtr __retVal__L = Mk.MkBufferCreate(IntPtr.Zero, IntPtr.Zero, size);
568 if (__retVal__L == IntPtr.Zero) {
569 throw new MkInitError("MkBufferC.Create");
570 }
571 return MkBufferC.MkBufferC_ObjCreate(__retVal__L);
572 }
csmkkernel.MkKernel Mk

◆ Create1024()

static MkBufferC csmkkernel.MkBufferC.Create1024 ( int size = 0)
inlinestatic

C#: [constructor,static] MkBufferC MkBufferC.Create1024(int size = 0) C-API
call the BufferCreate with default type MkBuffer1024S (1024 byte) …

Definition at line 575 of file MkBufferC.cs.

575 {
576 IntPtr __retVal__L = Mk.MkBufferCreate1024(IntPtr.Zero, size);
577 if (__retVal__L == IntPtr.Zero) {
578 throw new MkInitError("MkBufferC.Create1024");
579 }
580 return MkBufferC.MkBufferC_ObjCreate(__retVal__L);
581 }

◆ Create256()

static MkBufferC csmkkernel.MkBufferC.Create256 ( int size = 0)
inlinestatic

C#: [constructor,static] MkBufferC MkBufferC.Create256(int size = 0) C-API
call the BufferCreate with default type MkBuffer256S (256 byte) …

Definition at line 584 of file MkBufferC.cs.

584 {
585 IntPtr __retVal__L = Mk.MkBufferCreate256(IntPtr.Zero, size);
586 if (__retVal__L == IntPtr.Zero) {
587 throw new MkInitError("MkBufferC.Create256");
588 }
589 return MkBufferC.MkBufferC_ObjCreate(__retVal__L);
590 }

◆ Create64()

static MkBufferC csmkkernel.MkBufferC.Create64 ( int size = 0)
inlinestatic

C#: [constructor,static] MkBufferC MkBufferC.Create64(int size = 0) C-API
call the BufferCreate with default type MkBuffer64S (64 byte) …

Definition at line 593 of file MkBufferC.cs.

593 {
594 IntPtr __retVal__L = Mk.MkBufferCreate64(IntPtr.Zero, size);
595 if (__retVal__L == IntPtr.Zero) {
596 throw new MkInitError("MkBufferC.Create64");
597 }
598 return MkBufferC.MkBufferC_ObjCreate(__retVal__L);
599 }

◆ CreateBIN()

static MkBufferC csmkkernel.MkBufferC.CreateBIN ( byte[] val)
inlinestatic

C#: doc_mk_cs_BufferCreateBIN C-API
Constructor - create a new MkBufferC with an PRIMITIVE TYPE

Definition at line 602 of file MkBufferC.cs.

602 {
603 var val_size = Marshal.SizeOf(val[0]) * val.Length;
604 var val_data = Marshal.AllocHGlobal(val_size);
605 Marshal.Copy(val,0,val_data,val_size);
606 Mk.MkBinaryR val_ref = Mk.MkBinaryCreate(val_size,val_data);
607 IntPtr __retVal__L = Mk.MkBufferCreateBIN(IntPtr.Zero, val_ref);
608 if (__retVal__L == IntPtr.Zero) {
609 throw new MkInitError("MkBufferC.CreateBIN");
610 }
611 return MkBufferC.MkBufferC_ObjCreate(__retVal__L);
612 }

◆ CreateBOL()

static MkBufferC csmkkernel.MkBufferC.CreateBOL ( bool val)
inlinestatic

C#: doc_mk_cs_BufferCreateBOL C-API
Constructor - create a new MkBufferC with an PRIMITIVE TYPE

Definition at line 615 of file MkBufferC.cs.

615 {
616 IntPtr __retVal__L = Mk.MkBufferCreateBOL(IntPtr.Zero, (Byte)(val?1:0));
617 if (__retVal__L == IntPtr.Zero) {
618 throw new MkInitError("MkBufferC.CreateBOL");
619 }
620 return MkBufferC.MkBufferC_ObjCreate(__retVal__L);
621 }

◆ CreateBUF()

static MkBufferC csmkkernel.MkBufferC.CreateBUF ( MkBufferC val)
inlinestatic

C#: [constructor,static] MkBufferC MkBufferC.CreateBUF(MkBufferC val) C-API
Constructor - create a new MkBufferC with an PRIMITIVE TYPE

Definition at line 624 of file MkBufferC.cs.

624 {
625 IntPtr val_hdl = MkBufferC.getOBJ("MkBufferC",val);
626 IntPtr __retVal__L = Mk.MkBufferCreateBUF(IntPtr.Zero, val_hdl);
627 if (__retVal__L == IntPtr.Zero) {
628 throw new MkInitError("MkBufferC.CreateBUF");
629 }
630 return MkBufferC.MkBufferC_ObjCreate(__retVal__L);
631 }

◆ CreateDBL()

static MkBufferC csmkkernel.MkBufferC.CreateDBL ( double val)
inlinestatic

C#: doc_mk_cs_BufferCreateDBL C-API
Constructor - create a new MkBufferC with an PRIMITIVE TYPE

Definition at line 634 of file MkBufferC.cs.

634 {
635 IntPtr __retVal__L = Mk.MkBufferCreateDBL(IntPtr.Zero, val);
636 if (__retVal__L == IntPtr.Zero) {
637 throw new MkInitError("MkBufferC.CreateDBL");
638 }
639 return MkBufferC.MkBufferC_ObjCreate(__retVal__L);
640 }

◆ CreateFLT()

static MkBufferC csmkkernel.MkBufferC.CreateFLT ( float val)
inlinestatic

C#: doc_mk_cs_BufferCreateFLT C-API
Constructor - create a new MkBufferC with an PRIMITIVE TYPE

Definition at line 643 of file MkBufferC.cs.

643 {
644 IntPtr __retVal__L = Mk.MkBufferCreateFLT(IntPtr.Zero, val);
645 if (__retVal__L == IntPtr.Zero) {
646 throw new MkInitError("MkBufferC.CreateFLT");
647 }
648 return MkBufferC.MkBufferC_ObjCreate(__retVal__L);
649 }

◆ CreateI16()

static MkBufferC csmkkernel.MkBufferC.CreateI16 ( short val)
inlinestatic

C#: doc_mk_cs_BufferCreateI16 C-API
Constructor - create a new MkBufferC with an PRIMITIVE TYPE

Definition at line 652 of file MkBufferC.cs.

652 {
653 IntPtr __retVal__L = Mk.MkBufferCreateI16(IntPtr.Zero, val);
654 if (__retVal__L == IntPtr.Zero) {
655 throw new MkInitError("MkBufferC.CreateI16");
656 }
657 return MkBufferC.MkBufferC_ObjCreate(__retVal__L);
658 }

◆ CreateI32()

static MkBufferC csmkkernel.MkBufferC.CreateI32 ( int val)
inlinestatic

C#: doc_mk_cs_BufferCreateI32 C-API
Constructor - create a new MkBufferC with an PRIMITIVE TYPE

Definition at line 661 of file MkBufferC.cs.

661 {
662 IntPtr __retVal__L = Mk.MkBufferCreateI32(IntPtr.Zero, val);
663 if (__retVal__L == IntPtr.Zero) {
664 throw new MkInitError("MkBufferC.CreateI32");
665 }
666 return MkBufferC.MkBufferC_ObjCreate(__retVal__L);
667 }

◆ CreateI64()

static MkBufferC csmkkernel.MkBufferC.CreateI64 ( long val)
inlinestatic

C#: doc_mk_cs_BufferCreateI64 C-API
Constructor - create a new MkBufferC with an PRIMITIVE TYPE

Definition at line 670 of file MkBufferC.cs.

670 {
671 IntPtr __retVal__L = Mk.MkBufferCreateI64(IntPtr.Zero, val);
672 if (__retVal__L == IntPtr.Zero) {
673 throw new MkInitError("MkBufferC.CreateI64");
674 }
675 return MkBufferC.MkBufferC_ObjCreate(__retVal__L);
676 }

◆ CreateI8()

static MkBufferC csmkkernel.MkBufferC.CreateI8 ( byte val)
inlinestatic

C#: doc_mk_cs_BufferCreateI8 C-API
Constructor - create a new MkBufferC with an PRIMITIVE TYPE

Definition at line 679 of file MkBufferC.cs.

679 {
680 IntPtr __retVal__L = Mk.MkBufferCreateI8(IntPtr.Zero, (Byte)(val));
681 if (__retVal__L == IntPtr.Zero) {
682 throw new MkInitError("MkBufferC.CreateI8");
683 }
684 return MkBufferC.MkBufferC_ObjCreate(__retVal__L);
685 }

◆ CreateSTR()

static MkBufferC csmkkernel.MkBufferC.CreateSTR ( string val)
inlinestatic

C#: doc_mk_cs_BufferCreateSTR C-API
Constructor - create a new MkBufferC with an PRIMITIVE TYPE

Definition at line 688 of file MkBufferC.cs.

688 {
689 IntPtr val_cstr = Marshal.StringToHGlobalAnsi(val);
690 IntPtr __retVal__L = Mk.MkBufferCreateSTR(IntPtr.Zero, val_cstr);
691 Marshal.FreeHGlobal(val_cstr);
692 if (__retVal__L == IntPtr.Zero) {
693 throw new MkInitError("MkBufferC.CreateSTR");
694 }
695 return MkBufferC.MkBufferC_ObjCreate(__retVal__L);
696 }

◆ CreateTLS()

static MkBufferC csmkkernel.MkBufferC.CreateTLS ( string tlsName,
bool resetB = true )
inlinestatic

C#: [static] MkBufferC MkBufferC.CreateTLS(string tlsName, bool resetB = true) C-API
same as BufferCreate but require no cleanup

Definition at line 701 of file MkBufferC.cs.

701 {
702 IntPtr tlsName_cstr = Marshal.StringToHGlobalAnsi(tlsName);
703 IntPtr __retVal__L = Mk.MkBufferCreateTLS(IntPtr.Zero, tlsName_cstr, resetB);
704 Marshal.FreeHGlobal(tlsName_cstr);
705 return MkBufferC.MkBufferC_ObjNew(__retVal__L);
706 }

◆ CTOR()

static IntPtr csmkkernel.MkBufferC.CTOR ( int size = 0)
inlinestaticprotected

C#: [constructor,static] MkBufferC MkBufferC.Create(int size = 0) C-API
Constructor - create a new MkBufferC with minimum size of internal storage …

Definition at line 554 of file MkBufferC.cs.

554 {
555 IntPtr __retVal__L = Mk.MkBufferCreate(IntPtr.Zero, IntPtr.Zero, size);
556 if (__retVal__L == IntPtr.Zero) {
557 throw new MkInitError("MkBufferC.CTOR");
558 }
559 return (IntPtr)__retVal__L;
560 }

◆ Dup()

MkBufferC csmkkernel.MkBufferC.Dup ( )
inline

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

Definition at line 543 of file MkBufferC.cs.

543 {
544 IntPtr __retVal__L = Mk.MkBufferDup(mkrt, hdl);
545 if (__retVal__L == IntPtr.Zero) {
546 throw new MkInitError("MkBufferC.Dup");
547 }
548 return MkBufferC.MkBufferC_ObjCreate(__retVal__L);
549 }

◆ Merge()

MkBufferC csmkkernel.MkBufferC.Merge ( )
inline

C#: [constructor] MkBufferC buf.Merge() C-API
Merge-Constructor - create a new MkBufferC as a merge from an existing object …

Definition at line 532 of file MkBufferC.cs.

532 {
533 IntPtr __retVal__L = Mk.MkBufferMerge(mkrt, hdl);
534 if (__retVal__L == IntPtr.Zero) {
535 throw new MkInitError("MkBufferC.Merge");
536 }
537 return MkBufferC.MkBufferC_ObjCreate(__retVal__L);
538 }

◆ MkBufferC()

csmkkernel.MkBufferC.MkBufferC ( int size = 0)
inline

CONSTRUCTOR.

C#: [constructor,static] MkBufferC MkBufferC.Create(int size = 0) C-API
Constructor - create a new MkBufferC with minimum size of internal storage …

Definition at line 563 of file MkBufferC.cs.

563: this(CTOR(size)) {}
static IntPtr CTOR(int size=0)
C#: [constructor,static] MkBufferC MkBufferC.Create(int size = 0) → C-API Constructor - create a...
Definition MkBufferC.cs:554