theKernel 10.0
Loading...
Searching...
No Matches
MkBufferListC_Misc_RB_API

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

+ Collaboration diagram for MkBufferListC_Misc_RB_API:

Functions

static OT_ProcRet rbmkkernel_MkBufferListC_FileGlob (OtClass_ARGS)
  Ruby: (constructor,static) MkBufferListC MkBufferListC.FileGlob(pattern_match:string) C-API
create a new MkBufferListC using the result from a filesystem glob operation …
 
static OT_ProcRet rbmkkernel_MkBufferListC_PositionMerge (MkBufferListC_ARGS)
  Ruby: MkBufferListC bfl.PositionMerge(source:MkBufferListC, position:int32) C-API
merge a MkBufferListS list into an MkBufferListS object on position
 
static OT_ProcRet rbmkkernel_MkBufferListC_Reset (MkBufferListC_ARGS)
  Ruby: MkBufferListC bfl.Reset() C-API
reset a MkBufferListC object …
 
static OT_ProcRet rbmkkernel_MkBufferListC_Sort (MkBufferListC_ARGS)
  Ruby: MkBufferListC bfl.Sort() C-API
sort a MkBufferListC
 
static OT_ProcRet rbmkkernel_MkBufferListC_ToBuffer (MkBufferListC_ARGS)
  Ruby: MkBufferC bfl.ToBuffer() C-API
Export a bfl into an MkBufferC using an MkBufferStreamC
 
static OT_ProcRet rbmkkernel_MkBufferListC_Cmp (MkBufferListC_ARGS)
  Ruby: int32 bfl.Cmp(bfl2:MkBufferListC) C-API
compare two buffer-list
 
static OT_ProcRet rbmkkernel_MkBufferListC_Copy (MkBufferListC_ARGS)
  Ruby: bfl.Copy(src:MkBufferListC) C-API
copy all internal data from src to tgt
 
static OT_ProcRet rbmkkernel_MkBufferListC_Move (MkBufferListC_ARGS)
  Ruby: to.Move(from:MkBufferListC) C-API
move all internal data from from to the end of to
 
static OT_ProcRet rbmkkernel_MkBufferListC_Reserve (MkBufferListC_ARGS)
  Ruby: bfl.Reserve(num:int32) C-API
reserve num items in a MkBufferListC object …
 
static OT_ProcRet rbmkkernel_MkBufferListC_SearchC (MkBufferListC_ARGS)
  Ruby: int32 bfl.SearchC(str:string, ?len:int32=-1?, ?startindex:int32=0?) C-API
search MK_STR item from a MkBufferListS object starting at startindex
 
static OT_ProcRet rbmkkernel_MkBufferListC_Size (MkBufferListC_ARGS)
  Ruby: int32 bfl.Size() C-API
get the number-of-items in the bfl
 
OT_ProcRet rbmkkernel_MkBufferListC_ToList (MkBufferListC_ARGS)
  Ruby: [list...] bfl.ToList() C-API
get a target-language list representation of the bfl
 
MK_DEPRECATED static MK_UNUSED OT_ProcRet rbmkkernel_MkBufferListC_ToString (MkBufferListC_ARGS)
 

Detailed Description

MkBufferListC - various functions to work on a MkBufferListS

Function Documentation

◆ rbmkkernel_MkBufferListC_Cmp()

static OT_ProcRet rbmkkernel_MkBufferListC_Cmp ( MkBufferListC_ARGS )
static

Ruby: int32 bfl.Cmp(bfl2:MkBufferListC) C-API
compare two buffer-list

Definition at line 964 of file MkBufferListC_rb.c.

964 {
971 end: MK_UNUSED /* LONG JUMP on error */
973}
#define OT_SETUP_ONEARG(d)
#define OT_CHECK_REQUIRED(val)
#define OT_retObj_SET_I32(nat)
#define OT_retObj_RETURN
#define OT_CHECK_NOARGS
#define OT_SETUP_hdl
#define Cmp_doc
#define MkBufferListCmp(...)
#define MkBufferListCreateTLS_T(name, num)
create a MkBufferListC instance as thread-local-storage …
#define MK_NULL_NO
flag, not allow NULL
#define MK_UNUSED
mark unnused variables and functions
#define OT_CHECK_BFLN(val, nullB)

◆ rbmkkernel_MkBufferListC_Copy()

static OT_ProcRet rbmkkernel_MkBufferListC_Copy ( MkBufferListC_ARGS )
static

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

Definition at line 976 of file MkBufferListC_rb.c.

976 {
982 MkBufferListCopy (hdl, src);
984 end: MK_UNUSED /* LONG JUMP on error */
986}
#define OT_retObj_SET_None
#define Copy_doc
#define MkBufferListCopy(...)

◆ rbmkkernel_MkBufferListC_FileGlob()

static OT_ProcRet rbmkkernel_MkBufferListC_FileGlob ( OtClass_ARGS )
static

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

Definition at line 896 of file MkBufferListC_rb.c.

896 {
899 MK_STRN pattern_match = 0;
900 OT_CHECK_REQUIRED(OT_CHECK_STRN (pattern_match))
902 MK_BFL retVal = MkBufferListFileGlob (pattern_match);
903 if (retVal == NULL) {
904 OT_ERROR_CONSTRUCTOR(MkBufferListC);
905 }
906 OT_retObj_SET_BFL(retVal);
907 end: MK_UNUSED /* LONG JUMP on error */
909}
#define OT_retObj_SET_BFL(nat)
#define OT_ERROR_CONSTRUCTOR(clazz)
#define OT_CHECK_STRN(val)
#define OT_SETUP_hdl_static_constr
#define FileGlob_doc
#define MkBufferListFileGlob(...)
const MK_STRB * MK_STRN
constant string pointer data-type
The CLASS used to store a list of MkBufferS items into a flat array…

◆ rbmkkernel_MkBufferListC_Move()

static OT_ProcRet rbmkkernel_MkBufferListC_Move ( MkBufferListC_ARGS )
static

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

Definition at line 989 of file MkBufferListC_rb.c.

989 {
995 MkBufferListMove (hdl, from);
997 end: MK_UNUSED /* LONG JUMP on error */
999}
#define Move_doc
#define MkBufferListMove(...)
#define OT_CHECK_BFL(val, nullB)

◆ rbmkkernel_MkBufferListC_PositionMerge()

static OT_ProcRet rbmkkernel_MkBufferListC_PositionMerge ( MkBufferListC_ARGS )
static

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

Definition at line 914 of file MkBufferListC_rb.c.

914 {
917 MkBufferListCreateTLS_T(source,10);
919 MK_NUM position = 0;
922 MK_BFL retVal = MkBufferListPositionMerge (hdl, source, position);
923 OT_retObj_SET_BFL(retVal);
924 end: MK_UNUSED /* LONG JUMP on error */
926}
#define OT_SETUP_VARARGS(min, max, d)
#define OT_CHECK_NI4(val)
#define PositionMerge_doc
#define MkBufferListPositionMerge(...)
int32_t MK_NUM
array size data-type ('num' items in array …

◆ rbmkkernel_MkBufferListC_Reserve()

static OT_ProcRet rbmkkernel_MkBufferListC_Reserve ( MkBufferListC_ARGS )
static

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

Definition at line 1002 of file MkBufferListC_rb.c.

1002 {
1005 MK_NUM num = 0;
1008 MkBufferListReserve (hdl, num);
1010 end: MK_UNUSED /* LONG JUMP on error */
1012}
#define Reserve_doc
#define MkBufferListReserve(...)

◆ rbmkkernel_MkBufferListC_Reset()

static OT_ProcRet rbmkkernel_MkBufferListC_Reset ( MkBufferListC_ARGS )
static

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

Definition at line 929 of file MkBufferListC_rb.c.

929 {
933 MK_BFL retVal = MkBufferListReset (hdl);
934 OT_retObj_SET_BFL(retVal);
935 end: MK_UNUSED /* LONG JUMP on error */
937}
#define OT_SETUP_NOARG(d)
#define Reset_doc
#define MkBufferListReset(...)

◆ rbmkkernel_MkBufferListC_SearchC()

static OT_ProcRet rbmkkernel_MkBufferListC_SearchC ( MkBufferListC_ARGS )
static

Ruby: int32 bfl.SearchC(str:string, ?len:int32=-1?, ?startindex:int32=0?) C-API
search MK_STR item from a MkBufferListS object starting at startindex

Definition at line 1015 of file MkBufferListC_rb.c.

1015 {
1018 MK_STRN str = 0;
1020 MK_NUM len = -1;
1022 MK_NUM startindex = 0;
1023 OT_CHECK_OPTIONAL(OT_CHECK_NI4 (startindex))
1025 OT_retObj_SET_I32(MkBufferListSearchC (hdl, str, len, startindex));
1026 end: MK_UNUSED /* LONG JUMP on error */
1028}
#define OT_CHECK_OPTIONAL(val)
#define SearchC_doc
#define MkBufferListSearchC(...)

◆ rbmkkernel_MkBufferListC_Size()

static OT_ProcRet rbmkkernel_MkBufferListC_Size ( MkBufferListC_ARGS )
static

Ruby: int32 bfl.Size() C-API
get the number-of-items in the bfl

Definition at line 1031 of file MkBufferListC_rb.c.

1031 {
1036 end: MK_UNUSED /* LONG JUMP on error */
1038}
#define Size_doc
#define MkBufferListSizeI(bfl)

◆ rbmkkernel_MkBufferListC_Sort()

static OT_ProcRet rbmkkernel_MkBufferListC_Sort ( MkBufferListC_ARGS )
static

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

Definition at line 940 of file MkBufferListC_rb.c.

940 {
944 MK_BFL retVal = MkBufferListSort (hdl);
945 OT_retObj_SET_BFL(retVal);
946 end: MK_UNUSED /* LONG JUMP on error */
948}
#define Sort_doc
#define MkBufferListSort(...)

◆ rbmkkernel_MkBufferListC_ToBuffer()

static OT_ProcRet rbmkkernel_MkBufferListC_ToBuffer ( MkBufferListC_ARGS )
static

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

Definition at line 951 of file MkBufferListC_rb.c.

951 {
955 MK_BUF retVal = MkBufferListToBuffer (hdl);
956 OT_retObj_SET_BUF(retVal);
957 end: MK_UNUSED /* LONG JUMP on error */
959}
#define OT_retObj_SET_BUF(nat)
#define ToBuffer_doc
#define MkBufferListToBuffer(...)
The ABSTRACT-CLASS used to store a native-type-data-item defined by PRIMITIVE TYPE …

◆ rbmkkernel_MkBufferListC_ToList()

OT_ProcRet rbmkkernel_MkBufferListC_ToList ( MkBufferListC_ARGS )

Ruby: [list...] bfl.ToList() C-API
get a target-language list representation of the bfl

Method definition

◆ rbmkkernel_MkBufferListC_ToString()

MK_DEPRECATED static MK_UNUSED OT_ProcRet rbmkkernel_MkBufferListC_ToString ( MkBufferListC_ARGS )
static

Definition at line 1045 of file MkBufferListC_rb.c.

#define OT_ERROR_LNG_RETURN