theKernel 10.0
Loading...
Searching...
No Matches
MkBufferC_TOR_RB_API

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

+ Collaboration diagram for MkBufferC_TOR_RB_API:

Functions

static OT_ProcRet rbmkkernel_MkBufferC_Merge (MkBufferC_ARGS)
  Ruby: (constructor) MkBufferC buf.Merge() C-API
Merge-Constructor - create a new MkBufferC as a merge from an existing object …
 
static OT_ProcRet rbmkkernel_MkBufferC_Dup (MkBufferC_ARGS)
  Ruby: (constructor) MkBufferC buf.Dup() C-API
Dup-Constructor - create a new MkBufferC instance as copy from an existing MkBufferC instance
 
static OT_ProcRet rbmkkernel_MkBufferC_Create (OtClass_ARGS)
  Ruby: (constructor,static) MkBufferC MkBufferC.Create(?size:int32=0?) C-API
Constructor - create a new MkBufferC with minimum size of internal storage …
 
static OT_ProcRet rbmkkernel_MkBufferC_Create1024 (OtClass_ARGS)
  Ruby: (constructor,static) MkBufferC MkBufferC.Create1024(?size:int32=0?) C-API
call the BufferCreate with default type MkBuffer1024S (1024 byte) …
 
static OT_ProcRet rbmkkernel_MkBufferC_Create256 (OtClass_ARGS)
  Ruby: (constructor,static) MkBufferC MkBufferC.Create256(?size:int32=0?) C-API
call the BufferCreate with default type MkBuffer256S (256 byte) …
 
static OT_ProcRet rbmkkernel_MkBufferC_Create64 (OtClass_ARGS)
  Ruby: (constructor,static) MkBufferC MkBufferC.Create64(?size:int32=0?) C-API
call the BufferCreate with default type MkBuffer64S (64 byte) …
 
static OT_ProcRet rbmkkernel_MkBufferC_CreateBIN (OtClass_ARGS)
  Ruby: doc_mk_rb_BufferCreateBIN C-API
Constructor - create a new MkBufferC with an PRIMITIVE TYPE
 
static OT_ProcRet rbmkkernel_MkBufferC_CreateBOL (OtClass_ARGS)
  Ruby: doc_mk_rb_BufferCreateBOL C-API
Constructor - create a new MkBufferC with an PRIMITIVE TYPE
 
static OT_ProcRet rbmkkernel_MkBufferC_CreateBUF (OtClass_ARGS)
  Ruby: (constructor,static) MkBufferC MkBufferC.CreateBUF(val:MkBufferC) C-API
Constructor - create a new MkBufferC with an PRIMITIVE TYPE
 
static OT_ProcRet rbmkkernel_MkBufferC_CreateDBL (OtClass_ARGS)
  Ruby: doc_mk_rb_BufferCreateDBL C-API
Constructor - create a new MkBufferC with an PRIMITIVE TYPE
 
static OT_ProcRet rbmkkernel_MkBufferC_CreateFLT (OtClass_ARGS)
  Ruby: doc_mk_rb_BufferCreateFLT C-API
Constructor - create a new MkBufferC with an PRIMITIVE TYPE
 
static OT_ProcRet rbmkkernel_MkBufferC_CreateI16 (OtClass_ARGS)
  Ruby: doc_mk_rb_BufferCreateI16 C-API
Constructor - create a new MkBufferC with an PRIMITIVE TYPE
 
static OT_ProcRet rbmkkernel_MkBufferC_CreateI32 (OtClass_ARGS)
  Ruby: doc_mk_rb_BufferCreateI32 C-API
Constructor - create a new MkBufferC with an PRIMITIVE TYPE
 
static OT_ProcRet rbmkkernel_MkBufferC_CreateI64 (OtClass_ARGS)
  Ruby: doc_mk_rb_BufferCreateI64 C-API
Constructor - create a new MkBufferC with an PRIMITIVE TYPE
 
static OT_ProcRet rbmkkernel_MkBufferC_CreateI8 (OtClass_ARGS)
  Ruby: doc_mk_rb_BufferCreateI8 C-API
Constructor - create a new MkBufferC with an PRIMITIVE TYPE
 
static OT_ProcRet rbmkkernel_MkBufferC_CreateSTR (OtClass_ARGS)
  Ruby: doc_mk_rb_BufferCreateSTR C-API
Constructor - create a new MkBufferC with an PRIMITIVE TYPE
 
static OT_ProcRet rbmkkernel_MkBufferC_new (CONSTR_ARGS)
  Ruby: (constructor,static) MkBufferC MkBufferC.new(?size:int32=0?) C-API
Constructor - create a new MkBufferC with minimum size of internal storage …
 
static OT_ProcRet rbmkkernel_MkBufferC_CreateTLS (OtClass_ARGS)
  Ruby: (static) MkBufferC MkBufferC.CreateTLS(tlsName:string, ?resetB:bool=true?) C-API
same as BufferCreate but require no cleanup
 

Detailed Description

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

Function Documentation

◆ rbmkkernel_MkBufferC_Create()

static OT_ProcRet rbmkkernel_MkBufferC_Create ( OtClass_ARGS )
static

Ruby: (constructor,static) MkBufferC MkBufferC.Create(?size:int32=0?) C-API
Constructor - create a new MkBufferC with minimum size of internal storage …

Definition at line 915 of file MkBufferC_rb.c.

915 {
918 MK_NUM size = 0;
921 MK_BUF retVal = MkBufferCreate (NULL, size);
922 if (retVal == NULL) {
923 OT_ERROR_CONSTRUCTOR(MkBufferC);
924 }
925 OT_CONSTRUCTOR_POST(retVal)
926 OT_retObj_SET_BUF(retVal);
927 end: MK_UNUSED /* LONG JUMP on error */
929}
#define OT_SETUP_VARARGS(min, max, d)
#define OT_CHECK_NI4(val)
#define OT_CONSTRUCTOR_POST(x)
#define OT_retObj_SET_BUF(nat)
#define OT_retObj_RETURN
#define OT_ERROR_CONSTRUCTOR(clazz)
#define OT_CHECK_OPTIONAL(val)
#define OT_CHECK_NOARGS
#define OT_SETUP_hdl_static_constr
#define Create_doc
#define MkBufferCreate(...)
#define MK_UNUSED
mark unnused variables and functions
int32_t MK_NUM
array size data-type ('num' items in array …
The ABSTRACT-CLASS used to store a native-type-data-item defined by PRIMITIVE TYPE …

◆ rbmkkernel_MkBufferC_Create1024()

static OT_ProcRet rbmkkernel_MkBufferC_Create1024 ( OtClass_ARGS )
static

Ruby: (constructor,static) MkBufferC MkBufferC.Create1024(?size:int32=0?) C-API
call the BufferCreate with default type MkBuffer1024S (1024 byte) …

Definition at line 932 of file MkBufferC_rb.c.

932 {
935 MK_NUM size = 0;
938 MK_BUF retVal = MkBufferCreate1024 (size);
939 if (retVal == NULL) {
940 OT_ERROR_CONSTRUCTOR(MkBufferC);
941 }
942 OT_retObj_SET_BUF(retVal);
943 end: MK_UNUSED /* LONG JUMP on error */
945}
#define Create1024_doc
#define MkBufferCreate1024(...)

◆ rbmkkernel_MkBufferC_Create256()

static OT_ProcRet rbmkkernel_MkBufferC_Create256 ( OtClass_ARGS )
static

Ruby: (constructor,static) MkBufferC MkBufferC.Create256(?size:int32=0?) C-API
call the BufferCreate with default type MkBuffer256S (256 byte) …

Definition at line 948 of file MkBufferC_rb.c.

948 {
951 MK_NUM size = 0;
954 MK_BUF retVal = MkBufferCreate256 (size);
955 if (retVal == NULL) {
956 OT_ERROR_CONSTRUCTOR(MkBufferC);
957 }
958 OT_retObj_SET_BUF(retVal);
959 end: MK_UNUSED /* LONG JUMP on error */
961}
#define Create256_doc
#define MkBufferCreate256(...)

◆ rbmkkernel_MkBufferC_Create64()

static OT_ProcRet rbmkkernel_MkBufferC_Create64 ( OtClass_ARGS )
static

Ruby: (constructor,static) MkBufferC MkBufferC.Create64(?size:int32=0?) C-API
call the BufferCreate with default type MkBuffer64S (64 byte) …

Definition at line 964 of file MkBufferC_rb.c.

964 {
967 MK_NUM size = 0;
970 MK_BUF retVal = MkBufferCreate64 (size);
971 if (retVal == NULL) {
972 OT_ERROR_CONSTRUCTOR(MkBufferC);
973 }
974 OT_retObj_SET_BUF(retVal);
975 end: MK_UNUSED /* LONG JUMP on error */
977}
#define Create64_doc
#define MkBufferCreate64(...)

◆ rbmkkernel_MkBufferC_CreateBIN()

static OT_ProcRet rbmkkernel_MkBufferC_CreateBIN ( OtClass_ARGS )
static

Ruby: doc_mk_rb_BufferCreateBIN C-API
Constructor - create a new MkBufferC with an PRIMITIVE TYPE

Definition at line 980 of file MkBufferC_rb.c.

980 {
983 MkBinaryR val = {0};
986 MK_BUF retVal = MkBufferCreateBIN (val);
987 if (retVal == NULL) {
988 OT_ERROR_CONSTRUCTOR(MkBufferC);
989 }
990 OT_retObj_SET_BUF(retVal);
991 end: MK_UNUSED /* LONG JUMP on error */
993}
#define OT_SETUP_ONEARG(d)
#define OT_CHECK_REQUIRED(val)
#define OT_CHECK__ME_REF_MkBinaryR(val)
#define CreateBIN_doc
#define MkBufferCreateBIN(...)
binary data default format …

◆ rbmkkernel_MkBufferC_CreateBOL()

static OT_ProcRet rbmkkernel_MkBufferC_CreateBOL ( OtClass_ARGS )
static

Ruby: doc_mk_rb_BufferCreateBOL C-API
Constructor - create a new MkBufferC with an PRIMITIVE TYPE

Definition at line 996 of file MkBufferC_rb.c.

996 {
999 MK_BOL val = 0;
1002 MK_BUF retVal = MkBufferCreateBOL ((MK_BOL)(val?1:0));
1003 if (retVal == NULL) {
1004 OT_ERROR_CONSTRUCTOR(MkBufferC);
1005 }
1006 OT_retObj_SET_BUF(retVal);
1007 end: MK_UNUSED /* LONG JUMP on error */
1009}
#define OT_CHECK_NB1(val)
#define CreateBOL_doc
#define MkBufferCreateBOL(...)
unsigned char MK_BOL
1 byte boolean data-type

◆ rbmkkernel_MkBufferC_CreateBUF()

static OT_ProcRet rbmkkernel_MkBufferC_CreateBUF ( OtClass_ARGS )
static

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

Definition at line 1012 of file MkBufferC_rb.c.

1012 {
1015 MK_BUFN val = 0;
1018 MK_BUF retVal = MkBufferCreateBUF (val);
1019 if (retVal == NULL) {
1020 OT_ERROR_CONSTRUCTOR(MkBufferC);
1021 }
1022 OT_retObj_SET_BUF(retVal);
1023 end: MK_UNUSED /* LONG JUMP on error */
1025}
#define CreateBUF_doc
#define MkBufferCreateBUF(...)
#define MK_NULL_NO
flag, not allow NULL
#define OT_CHECK_BUFN(val, nullB)

◆ rbmkkernel_MkBufferC_CreateDBL()

static OT_ProcRet rbmkkernel_MkBufferC_CreateDBL ( OtClass_ARGS )
static

Ruby: doc_mk_rb_BufferCreateDBL C-API
Constructor - create a new MkBufferC with an PRIMITIVE TYPE

Definition at line 1028 of file MkBufferC_rb.c.

1028 {
1031 MK_DBL val = 0;
1034 MK_BUF retVal = MkBufferCreateDBL (val);
1035 if (retVal == NULL) {
1036 OT_ERROR_CONSTRUCTOR(MkBufferC);
1037 }
1038 OT_retObj_SET_BUF(retVal);
1039 end: MK_UNUSED /* LONG JUMP on error */
1041}
#define OT_CHECK_NF8(val)
#define CreateDBL_doc
#define MkBufferCreateDBL(...)
double MK_DBL
8 byte double data-type

◆ rbmkkernel_MkBufferC_CreateFLT()

static OT_ProcRet rbmkkernel_MkBufferC_CreateFLT ( OtClass_ARGS )
static

Ruby: doc_mk_rb_BufferCreateFLT C-API
Constructor - create a new MkBufferC with an PRIMITIVE TYPE

Definition at line 1044 of file MkBufferC_rb.c.

1044 {
1047 MK_FLT val = 0;
1050 MK_BUF retVal = MkBufferCreateFLT (val);
1051 if (retVal == NULL) {
1052 OT_ERROR_CONSTRUCTOR(MkBufferC);
1053 }
1054 OT_retObj_SET_BUF(retVal);
1055 end: MK_UNUSED /* LONG JUMP on error */
1057}
#define OT_CHECK_NF4(val)
#define CreateFLT_doc
#define MkBufferCreateFLT(...)
float MK_FLT
4 byte float data-type

◆ rbmkkernel_MkBufferC_CreateI16()

static OT_ProcRet rbmkkernel_MkBufferC_CreateI16 ( OtClass_ARGS )
static

Ruby: doc_mk_rb_BufferCreateI16 C-API
Constructor - create a new MkBufferC with an PRIMITIVE TYPE

Definition at line 1060 of file MkBufferC_rb.c.

1060 {
1063 MK_I16 val = 0;
1066 MK_BUF retVal = MkBufferCreateI16 (val);
1067 if (retVal == NULL) {
1068 OT_ERROR_CONSTRUCTOR(MkBufferC);
1069 }
1070 OT_retObj_SET_BUF(retVal);
1071 end: MK_UNUSED /* LONG JUMP on error */
1073}
#define OT_CHECK_NI2(val)
#define CreateI16_doc
#define MkBufferCreateI16(...)
signed short int MK_I16
2 byte short data-type

◆ rbmkkernel_MkBufferC_CreateI32()

static OT_ProcRet rbmkkernel_MkBufferC_CreateI32 ( OtClass_ARGS )
static

Ruby: doc_mk_rb_BufferCreateI32 C-API
Constructor - create a new MkBufferC with an PRIMITIVE TYPE

Definition at line 1076 of file MkBufferC_rb.c.

1076 {
1079 MK_I32 val = 0;
1082 MK_BUF retVal = MkBufferCreateI32 (val);
1083 if (retVal == NULL) {
1084 OT_ERROR_CONSTRUCTOR(MkBufferC);
1085 }
1086 OT_retObj_SET_BUF(retVal);
1087 end: MK_UNUSED /* LONG JUMP on error */
1089}
#define CreateI32_doc
#define MkBufferCreateI32(...)
signed int MK_I32
4 byte integer data-type

◆ rbmkkernel_MkBufferC_CreateI64()

static OT_ProcRet rbmkkernel_MkBufferC_CreateI64 ( OtClass_ARGS )
static

Ruby: doc_mk_rb_BufferCreateI64 C-API
Constructor - create a new MkBufferC with an PRIMITIVE TYPE

Definition at line 1092 of file MkBufferC_rb.c.

1092 {
1095 MK_I64 val = 0;
1098 MK_BUF retVal = MkBufferCreateI64 (val);
1099 if (retVal == NULL) {
1100 OT_ERROR_CONSTRUCTOR(MkBufferC);
1101 }
1102 OT_retObj_SET_BUF(retVal);
1103 end: MK_UNUSED /* LONG JUMP on error */
1105}
#define OT_CHECK_NI8(val)
#define CreateI64_doc
#define MkBufferCreateI64(...)
signed long long MK_I64
8 byte wide integer data-type

◆ rbmkkernel_MkBufferC_CreateI8()

static OT_ProcRet rbmkkernel_MkBufferC_CreateI8 ( OtClass_ARGS )
static

Ruby: doc_mk_rb_BufferCreateI8 C-API
Constructor - create a new MkBufferC with an PRIMITIVE TYPE

Definition at line 1108 of file MkBufferC_rb.c.

1108 {
1111 MK_I8 val = 0;
1114 MK_BUF retVal = MkBufferCreateI8 ((MK_I8)(val));
1115 if (retVal == NULL) {
1116 OT_ERROR_CONSTRUCTOR(MkBufferC);
1117 }
1118 OT_retObj_SET_BUF(retVal);
1119 end: MK_UNUSED /* LONG JUMP on error */
1121}
#define OT_CHECK_NI1(val)
#define CreateI8_doc
#define MkBufferCreateI8(...)
signed char MK_I8
1 byte byte data-type

◆ rbmkkernel_MkBufferC_CreateSTR()

static OT_ProcRet rbmkkernel_MkBufferC_CreateSTR ( OtClass_ARGS )
static

Ruby: doc_mk_rb_BufferCreateSTR C-API
Constructor - create a new MkBufferC with an PRIMITIVE TYPE

Definition at line 1124 of file MkBufferC_rb.c.

1124 {
1127 MK_STRN val = 0;
1130 MK_BUF retVal = MkBufferCreateSTR (val);
1131 if (retVal == NULL) {
1132 OT_ERROR_CONSTRUCTOR(MkBufferC);
1133 }
1134 OT_retObj_SET_BUF(retVal);
1135 end: MK_UNUSED /* LONG JUMP on error */
1137}
#define OT_CHECK_STRN(val)
#define CreateSTR_doc
#define MkBufferCreateSTR(...)
const MK_STRB * MK_STRN
constant string pointer data-type

◆ rbmkkernel_MkBufferC_CreateTLS()

static OT_ProcRet rbmkkernel_MkBufferC_CreateTLS ( OtClass_ARGS )
static

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

Definition at line 1158 of file MkBufferC_rb.c.

1158 {
1161 MK_STRN tlsName = 0;
1163 MK_BOOL resetB = true;
1166 MK_BUF retVal = MkBufferCreateTLS (tlsName, resetB);
1167 OT_retObj_SET_BUF(retVal);
1168 end: MK_UNUSED /* LONG JUMP on error */
1170}
#define OT_CHECK_bool(val)
#define CreateTLS_doc
#define OT_SETUP_hdl_static
#define MkBufferCreateTLS(...)
bool MK_BOOL
real bool data-type

◆ rbmkkernel_MkBufferC_Dup()

static OT_ProcRet rbmkkernel_MkBufferC_Dup ( MkBufferC_ARGS )
static

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

Definition at line 899 of file MkBufferC_rb.c.

899 {
903 MK_BUF retVal = MkBufferDup (hdl);
904 if (retVal == NULL) {
905 OT_ERROR_CONSTRUCTOR(MkBufferC);
906 }
907 OT_retObj_SET_BUF(retVal);
908 end: MK_UNUSED /* LONG JUMP on error */
910}
#define OT_SETUP_NOARG(d)
#define OT_SETUP_hdl
#define Dup_doc
#define MkBufferDup(...)

◆ rbmkkernel_MkBufferC_Merge()

static OT_ProcRet rbmkkernel_MkBufferC_Merge ( MkBufferC_ARGS )
static

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

Definition at line 883 of file MkBufferC_rb.c.

883 {
887 MK_BUF retVal = MkBufferMerge (hdl);
888 if (retVal == NULL) {
889 OT_ERROR_CONSTRUCTOR(MkBufferC);
890 }
891 OT_retObj_SET_BUF(retVal);
892 end: MK_UNUSED /* LONG JUMP on error */
894}
#define Merge_doc
#define MkBufferMerge(...)

◆ rbmkkernel_MkBufferC_new()

static OT_ProcRet rbmkkernel_MkBufferC_new ( CONSTR_ARGS )
static

Ruby: (constructor,static) MkBufferC MkBufferC.new(?size:int32=0?) C-API
Constructor - create a new MkBufferC with minimum size of internal storage …

Definition at line 1140 of file MkBufferC_rb.c.

1140 {
1143 MK_NUM size = 0;
1145 MK_BUF retVal = MkBufferCreate (NULL, size);
1146 if (retVal == NULL) {
1147 OT_ERROR_CONSTRUCTOR(MkBufferC);
1148 }
1149 OT_CONSTRUCTOR_POST(retVal)
1150 OT_retObj_CONSTR(retVal);
1151 end: MK_UNUSED /* LONG JUMP on error */
1153}
#define OT_retObj_CONSTR(mng)
#define OT_SETUP_CONSTRUCTOR_ARGS(min, max, d)
#define OT_SETUP_hdl_constr
#define new_doc