theKernel 10.0
Loading...
Searching...
No Matches
MkBufferC_Misc_RB_API

MkBufferC - various functions to work on buffer-dataMore...

+ Collaboration diagram for MkBufferC_Misc_RB_API:

Functions

static OT_ProcRet rbmkkernel_MkBufferC_Copy (MkBufferC_ARGS)
  Ruby: MkBufferC buf.Copy(srce:MkBufferC) C-API
copy the MkBufferC from srce to dest
 
static OT_ProcRet rbmkkernel_MkBufferC_Reset (MkBufferC_ARGS)
  Ruby: MkBufferC buf.Reset() C-API
reset a MkBufferC to the length zero …
 
static OT_ProcRet rbmkkernel_MkBufferC_SizeAdd (MkBufferC_ARGS)
  Ruby: MkBufferC buf.SizeAdd(size:int32) C-API
add size storage to the buf
 
static OT_ProcRet rbmkkernel_MkBufferC_SizeNew (MkBufferC_ARGS)
  Ruby: MkBufferC buf.SizeNew(size:int32) C-API
alloc min size storage to the buf
 
OT_ProcRet rbmkkernel_MkBufferC_Temp (MkBufferC_ARGS)
  Ruby: MkBufferC buf.Temp() C-API
create a temporary copy of the MkBufferC buf …
 
static OT_ProcRet rbmkkernel_MkBufferC_CastTo (MkBufferC_ARGS)
  Ruby: buf.CastTo(typ:MkTypeE) C-API
change the type of an MkBufferC to type
 
static OT_ProcRet rbmkkernel_MkBufferC_Cmp (MkBufferC_ARGS)
  Ruby: int32 buf1.Cmp(buf2:MkBufferC) C-API
compare TWO MkBufferC objects like strcmp do it for strings …
 
static OT_ProcRet rbmkkernel_MkBufferC_ResetFull (MkBufferC_ARGS)
  Ruby: buf.ResetFull() C-API
reset a MkBufferC to the length zero and free allocated storage…
 
MK_DEPRECATED static MK_UNUSED OT_ProcRet rbmkkernel_MkBufferC_ToString (MkBufferC_ARGS)
 

Detailed Description

MkBufferC - various functions to work on buffer-data

Function Documentation

◆ rbmkkernel_MkBufferC_CastTo()

static OT_ProcRet rbmkkernel_MkBufferC_CastTo ( MkBufferC_ARGS )
static

Ruby: buf.CastTo(typ:MkTypeE) C-API
change the type of an MkBufferC to type

Definition at line 669 of file MkBufferC_rb.c.

669 {
672 enum MkTypeE typ = 0;
675 MkErrorC_Check(hdl,MkBufferCastTo (hdl, typ));
677 end: MK_UNUSED /* LONG JUMP on error */
679}
#define OT_SETUP_ONEARG(d)
#define OT_CHECK_REQUIRED(val)
#define OT_retObj_SET_None
#define OT_retObj_RETURN
#define OT_CHECK_NOARGS
#define MkErrorC_Check(mng, PROC)
#define OT_SETUP_hdl
#define CastTo_doc
#define MkBufferCastTo(...)
#define MK_UNUSED
mark unnused variables and functions
MkTypeE
basic data-types supported by Programming-Language-Micro-Kernel (PLMK) …
#define OT_CHECK_ENUM(ename, val)

◆ rbmkkernel_MkBufferC_Cmp()

static OT_ProcRet rbmkkernel_MkBufferC_Cmp ( MkBufferC_ARGS )
static

Ruby: int32 buf1.Cmp(buf2:MkBufferC) C-API
compare TWO MkBufferC objects like strcmp do it for strings …

Definition at line 682 of file MkBufferC_rb.c.

682 {
685 MK_BUFN buf2 = 0;
688 OT_retObj_SET_I32(MkBufferCmp (hdl, buf2));
689 end: MK_UNUSED /* LONG JUMP on error */
691}
#define OT_retObj_SET_I32(nat)
#define Cmp_doc
#define MkBufferCmp(...)
#define MK_NULL_NO
flag, not allow NULL
#define OT_CHECK_BUFN(val, nullB)
The ABSTRACT-CLASS used to store a native-type-data-item defined by PRIMITIVE TYPE …

◆ rbmkkernel_MkBufferC_Copy()

static OT_ProcRet rbmkkernel_MkBufferC_Copy ( MkBufferC_ARGS )
static

Ruby: MkBufferC buf.Copy(srce:MkBufferC) C-API
copy the MkBufferC from srce to dest

Definition at line 606 of file MkBufferC_rb.c.

606 {
609 MK_BUFN srce = 0;
612 MK_BUF retVal = MkBufferCopy (hdl, srce);
613 OT_retObj_SET_BUF(retVal);
614 end: MK_UNUSED /* LONG JUMP on error */
616}
#define OT_retObj_SET_BUF(nat)
#define Copy_doc
#define MkBufferCopy(...)

◆ rbmkkernel_MkBufferC_Reset()

static OT_ProcRet rbmkkernel_MkBufferC_Reset ( MkBufferC_ARGS )
static

Ruby: MkBufferC buf.Reset() C-API
reset a MkBufferC to the length zero …

Definition at line 619 of file MkBufferC_rb.c.

619 {
623 MK_BUF retVal = MkBufferReset (hdl);
624 OT_retObj_SET_BUF(retVal);
625 end: MK_UNUSED /* LONG JUMP on error */
627}
#define OT_SETUP_NOARG(d)
#define Reset_doc
#define MkBufferReset(...)

◆ rbmkkernel_MkBufferC_ResetFull()

static OT_ProcRet rbmkkernel_MkBufferC_ResetFull ( MkBufferC_ARGS )
static

Ruby: buf.ResetFull() C-API
reset a MkBufferC to the length zero and free allocated storage…

Definition at line 694 of file MkBufferC_rb.c.

694 {
698 MkBufferResetFull (hdl);
700 end: MK_UNUSED /* LONG JUMP on error */
702}
#define ResetFull_doc
#define MkBufferResetFull(...)

◆ rbmkkernel_MkBufferC_SizeAdd()

static OT_ProcRet rbmkkernel_MkBufferC_SizeAdd ( MkBufferC_ARGS )
static

Ruby: MkBufferC buf.SizeAdd(size:int32) C-API
add size storage to the buf

Definition at line 630 of file MkBufferC_rb.c.

630 {
633 MK_NUM size = 0;
636 MK_BUF retVal = MkBufferSizeAdd (hdl, size);
637 OT_retObj_SET_BUF(retVal);
638 end: MK_UNUSED /* LONG JUMP on error */
640}
#define OT_CHECK_NI4(val)
#define SizeAdd_doc
#define MkBufferSizeAdd(...)
int32_t MK_NUM
array size data-type ('num' items in array …

◆ rbmkkernel_MkBufferC_SizeNew()

static OT_ProcRet rbmkkernel_MkBufferC_SizeNew ( MkBufferC_ARGS )
static

Ruby: MkBufferC buf.SizeNew(size:int32) C-API
alloc min size storage to the buf

Definition at line 643 of file MkBufferC_rb.c.

643 {
646 MK_NUM size = 0;
649 MK_BUF retVal = MkBufferSizeNew (hdl, size);
650 OT_retObj_SET_BUF(retVal);
651 end: MK_UNUSED /* LONG JUMP on error */
653}
#define SizeNew_doc
#define MkBufferSizeNew(...)

◆ rbmkkernel_MkBufferC_Temp()

OT_ProcRet rbmkkernel_MkBufferC_Temp ( MkBufferC_ARGS )

Ruby: MkBufferC buf.Temp() C-API
create a temporary copy of the MkBufferC buf …

Definition at line 656 of file MkBufferC_rb.c.

656 {
660 MK_BUF retVal = MkBufferTemp (hdl);
661 OT_retObj_SET_BUF(retVal);
662 end: MK_UNUSED /* LONG JUMP on error */
664}
#define Temp_doc
#define MkBufferTemp(...)

◆ rbmkkernel_MkBufferC_ToString()

MK_DEPRECATED static MK_UNUSED OT_ProcRet rbmkkernel_MkBufferC_ToString ( MkBufferC_ARGS )
static

Definition at line 706 of file MkBufferC_rb.c.

#define OT_ERROR_LNG_RETURN