theKernel 10.0
Loading...
Searching...
No Matches
MkBufferStreamC_Read_RB_API

MkBufferStreamC - various functions to 'read' data from a MkBufferStreamSMore...

+ Collaboration diagram for MkBufferStreamC_Read_RB_API:

Functions

static OT_ProcRet rbmkkernel_MkBufferStreamC_ReadALL (MkBufferStreamC_ARGS)
  Ruby: MkBufferListC bus.ReadALL(?val_inout:MkBufferListC=nil?) C-API
get a temporary MkBufferListC from all data in the MkBufferStreamC
 
static OT_ProcRet rbmkkernel_MkBufferStreamC_ReadBFL (MkBufferStreamC_ARGS)
  Ruby: MkBufferListC bus.ReadBFL() C-API
read a MkBufferListC from the MkBufferStreamC
 
static OT_ProcRet rbmkkernel_MkBufferStreamC_ReadBUF (MkBufferStreamC_ARGS)
  Ruby: MkBufferC bus.ReadBUF() C-API
read a val_out from the MkBufferStreamC
 
static OT_ProcRet rbmkkernel_MkBufferStreamC_ReadGetNextType (MkBufferStreamC_ARGS)
  Ruby: MkTypeE bus.ReadGetNextType() C-API
get the type (MkTypeE) of the next Item in the MkBufferStreamC or "0" if not available
 
static OT_ProcRet rbmkkernel_MkBufferStreamC_ReadGetNumItems (MkBufferStreamC_ARGS)
  Ruby: int32 bus.ReadGetNumItems() C-API
get the number of items left in the MkBufferStreamC
 
static OT_ProcRet rbmkkernel_MkBufferStreamC_ReadItemExists (MkBufferStreamC_ARGS)
  Ruby: bool bus.ReadItemExists() C-API
check if an item exists in the read-data-package
 
static OT_ProcRet rbmkkernel_MkBufferStreamC_ReadL_END (MkBufferStreamC_ARGS)
  Ruby: bus.ReadL_END() C-API
END read a list-item-type from the MkBufferStreamC
 
static OT_ProcRet rbmkkernel_MkBufferStreamC_ReadL_START (MkBufferStreamC_ARGS)
  Ruby: bus.ReadL_START(?buf:MkBufferC=nil?) C-API
START read a list-item-type from the MkBufferStreamC
 
static OT_ProcRet rbmkkernel_MkBufferStreamC_ReadUndo (MkBufferStreamC_ARGS)
  Ruby: bus.ReadUndo() C-API
undo the last MkBufferStreamC READ function call …
 
static OT_ProcRet rbmkkernel_MkBufferStreamC_ReadBIN (MkBufferStreamC_ARGS)
  Ruby: doc_mk_rb_BufferStreamReadBIN C-API
read a val_out from the MkBufferStreamC
 
static OT_ProcRet rbmkkernel_MkBufferStreamC_ReadBOL (MkBufferStreamC_ARGS)
  Ruby: doc_mk_rb_BufferStreamReadBOL C-API
read a val_out from the MkBufferStreamC
 
static OT_ProcRet rbmkkernel_MkBufferStreamC_ReadDBL (MkBufferStreamC_ARGS)
  Ruby: doc_mk_rb_BufferStreamReadDBL C-API
read a val_out from the MkBufferStreamC
 
static OT_ProcRet rbmkkernel_MkBufferStreamC_ReadFLT (MkBufferStreamC_ARGS)
  Ruby: doc_mk_rb_BufferStreamReadFLT C-API
read a val_out from the MkBufferStreamC
 
static OT_ProcRet rbmkkernel_MkBufferStreamC_ReadI32 (MkBufferStreamC_ARGS)
  Ruby: doc_mk_rb_BufferStreamReadI32 C-API
read a val_out from the MkBufferStreamC
 
static OT_ProcRet rbmkkernel_MkBufferStreamC_ReadI64 (MkBufferStreamC_ARGS)
  Ruby: doc_mk_rb_BufferStreamReadI64 C-API
read a val_out from the MkBufferStreamC
 
static OT_ProcRet rbmkkernel_MkBufferStreamC_ReadI8 (MkBufferStreamC_ARGS)
  Ruby: doc_mk_rb_BufferStreamReadI8 C-API
read a val_out from the MkBufferStreamC
 
static OT_ProcRet rbmkkernel_MkBufferStreamC_ReadLONG (MkBufferStreamC_ARGS)
  Ruby: long bus.ReadLONG() C-API
read the long native object from the MkBufferStreamC
 
static OT_ProcRet rbmkkernel_MkBufferStreamC_ReadSTR (MkBufferStreamC_ARGS)
  Ruby: doc_mk_rb_BufferStreamReadSTR C-API
read a val_out from the MkBufferStreamC
 

Detailed Description

MkBufferStreamC - various functions to 'read' data from a MkBufferStreamS

Read is done at the position of MkBufferStreamS::storage->cur. After read the cur is incemented with read-sizeof characters.

Function Documentation

◆ rbmkkernel_MkBufferStreamC_ReadALL()

static OT_ProcRet rbmkkernel_MkBufferStreamC_ReadALL ( MkBufferStreamC_ARGS )
static

Ruby: MkBufferListC bus.ReadALL(?val_inout:MkBufferListC=nil?) C-API
get a temporary MkBufferListC from all data in the MkBufferStreamC

Definition at line 369 of file MkBufferStreamC_rb.c.

369 {
372 MkBufferListCreateTLS_T(val_inout,10);
375 MkErrorC_Check(hdl,MkBufferStreamReadALL (hdl, &val_inout));
376 OT_retObj_SET_BFL(val_inout);
377 end: MK_UNUSED /* LONG JUMP on error */
379}
#define OT_SETUP_VARARGS(min, max, d)
#define OT_retObj_SET_BFL(nat)
#define OT_retObj_RETURN
#define OT_CHECK_OPTIONAL(val)
#define OT_CHECK_NOARGS
#define MkErrorC_Check(mng, PROC)
#define OT_SETUP_hdl
#define ReadALL_doc
#define MkBufferListCreateTLS_T(name, num)
create a MkBufferListC instance as thread-local-storage …
#define MkBufferStreamReadALL(...)
#define MK_NULL_YES
flag, allow NULL
#define MK_UNUSED
mark unnused variables and functions
#define OT_CHECK_BFL(val, nullB)

◆ rbmkkernel_MkBufferStreamC_ReadBFL()

static OT_ProcRet rbmkkernel_MkBufferStreamC_ReadBFL ( MkBufferStreamC_ARGS )
static

Ruby: MkBufferListC bus.ReadBFL() C-API
read a MkBufferListC from the MkBufferStreamC

Definition at line 384 of file MkBufferStreamC_rb.c.

384 {
388 MK_BFL val_out;
389 MkErrorC_Check(hdl,MkBufferStreamReadBFL (hdl, &val_out));
390 OT_retObj_SET_BFL(val_out);
391 end: MK_UNUSED /* LONG JUMP on error */
393}
#define OT_SETUP_NOARG(d)
#define ReadBFL_doc
#define MkBufferStreamReadBFL(...)
The CLASS used to store a list of MkBufferS items into a flat array…

◆ rbmkkernel_MkBufferStreamC_ReadBIN()

static OT_ProcRet rbmkkernel_MkBufferStreamC_ReadBIN ( MkBufferStreamC_ARGS )
static

Ruby: doc_mk_rb_BufferStreamReadBIN C-API
read a val_out from the MkBufferStreamC

Definition at line 477 of file MkBufferStreamC_rb.c.

477 {
481 MkBinaryR val_out;
482 MkErrorC_Check(hdl,MkBufferStreamReadBIN (hdl, &val_out));
483 MkBinaryR retVal = val_out;
485 end: MK_UNUSED /* LONG JUMP on error */
487}
#define OT_GET__ME_REF_MkBinaryR(b)
#define OT_retObj_SET(val)
#define ReadBIN_doc
#define MkBufferStreamReadBIN(...)
binary data default format …

◆ rbmkkernel_MkBufferStreamC_ReadBOL()

static OT_ProcRet rbmkkernel_MkBufferStreamC_ReadBOL ( MkBufferStreamC_ARGS )
static

Ruby: doc_mk_rb_BufferStreamReadBOL C-API
read a val_out from the MkBufferStreamC

Definition at line 490 of file MkBufferStreamC_rb.c.

490 {
494 MK_BOL val_out;
495 MkErrorC_Check(hdl,MkBufferStreamReadBOL (hdl, &val_out));
496 OT_retObj_SET_BOL(val_out == 1);
497 end: MK_UNUSED /* LONG JUMP on error */
499}
#define OT_retObj_SET_BOL(nat)
#define ReadBOL_doc
#define MkBufferStreamReadBOL(...)
unsigned char MK_BOL
1 byte boolean data-type

◆ rbmkkernel_MkBufferStreamC_ReadBUF()

static OT_ProcRet rbmkkernel_MkBufferStreamC_ReadBUF ( MkBufferStreamC_ARGS )
static

Ruby: MkBufferC bus.ReadBUF() C-API
read a val_out from the MkBufferStreamC

Definition at line 396 of file MkBufferStreamC_rb.c.

396 {
400 MK_BUF val_out;
401 MkErrorC_Check(hdl,MkBufferStreamReadBUF (hdl, &val_out));
402 OT_retObj_SET_BUF(val_out);
403 end: MK_UNUSED /* LONG JUMP on error */
405}
#define OT_retObj_SET_BUF(nat)
#define ReadBUF_doc
#define MkBufferStreamReadBUF(...)
The ABSTRACT-CLASS used to store a native-type-data-item defined by PRIMITIVE TYPE …

◆ rbmkkernel_MkBufferStreamC_ReadDBL()

static OT_ProcRet rbmkkernel_MkBufferStreamC_ReadDBL ( MkBufferStreamC_ARGS )
static

Ruby: doc_mk_rb_BufferStreamReadDBL C-API
read a val_out from the MkBufferStreamC

Definition at line 502 of file MkBufferStreamC_rb.c.

502 {
506 MK_DBL val_out;
507 MkErrorC_Check(hdl,MkBufferStreamReadDBL (hdl, &val_out));
508 OT_retObj_SET_DBL(val_out);
509 end: MK_UNUSED /* LONG JUMP on error */
511}
#define OT_retObj_SET_DBL(nat)
#define ReadDBL_doc
#define MkBufferStreamReadDBL(...)
double MK_DBL
8 byte double data-type

◆ rbmkkernel_MkBufferStreamC_ReadFLT()

static OT_ProcRet rbmkkernel_MkBufferStreamC_ReadFLT ( MkBufferStreamC_ARGS )
static

Ruby: doc_mk_rb_BufferStreamReadFLT C-API
read a val_out from the MkBufferStreamC

Definition at line 514 of file MkBufferStreamC_rb.c.

514 {
518 MK_FLT val_out;
519 MkErrorC_Check(hdl,MkBufferStreamReadFLT (hdl, &val_out));
520 OT_retObj_SET_FLT(val_out);
521 end: MK_UNUSED /* LONG JUMP on error */
523}
#define OT_retObj_SET_FLT(nat)
#define ReadFLT_doc
#define MkBufferStreamReadFLT(...)
float MK_FLT
4 byte float data-type

◆ rbmkkernel_MkBufferStreamC_ReadGetNextType()

static OT_ProcRet rbmkkernel_MkBufferStreamC_ReadGetNextType ( MkBufferStreamC_ARGS )
static

Ruby: MkTypeE bus.ReadGetNextType() C-API
get the type (MkTypeE) of the next Item in the MkBufferStreamC or "0" if not available

Definition at line 410 of file MkBufferStreamC_rb.c.

410 {
415 end: MK_UNUSED /* LONG JUMP on error */
417}
#define OT_NEW_Mk_enum_OBJ(typ, i)
#define ReadGetNextType_doc
#define MkBufferStreamReadGetNextType(...)

◆ rbmkkernel_MkBufferStreamC_ReadGetNumItems()

static OT_ProcRet rbmkkernel_MkBufferStreamC_ReadGetNumItems ( MkBufferStreamC_ARGS )
static

Ruby: int32 bus.ReadGetNumItems() C-API
get the number of items left in the MkBufferStreamC

Definition at line 420 of file MkBufferStreamC_rb.c.

420 {
425 end: MK_UNUSED /* LONG JUMP on error */
427}
#define OT_retObj_SET_I32(nat)
#define ReadGetNumItems_doc
#define MkBufferStreamReadGetNumItems(...)

◆ rbmkkernel_MkBufferStreamC_ReadI32()

static OT_ProcRet rbmkkernel_MkBufferStreamC_ReadI32 ( MkBufferStreamC_ARGS )
static

Ruby: doc_mk_rb_BufferStreamReadI32 C-API
read a val_out from the MkBufferStreamC

Definition at line 526 of file MkBufferStreamC_rb.c.

526 {
530 MK_I32 val_out;
531 MkErrorC_Check(hdl,MkBufferStreamReadI32 (hdl, &val_out));
532 OT_retObj_SET_I32(val_out);
533 end: MK_UNUSED /* LONG JUMP on error */
535}
#define ReadI32_doc
#define MkBufferStreamReadI32(...)
signed int MK_I32
4 byte integer data-type

◆ rbmkkernel_MkBufferStreamC_ReadI64()

static OT_ProcRet rbmkkernel_MkBufferStreamC_ReadI64 ( MkBufferStreamC_ARGS )
static

Ruby: doc_mk_rb_BufferStreamReadI64 C-API
read a val_out from the MkBufferStreamC

Definition at line 538 of file MkBufferStreamC_rb.c.

538 {
542 MK_I64 val_out;
543 MkErrorC_Check(hdl,MkBufferStreamReadI64 (hdl, &val_out));
544 OT_retObj_SET_I64(val_out);
545 end: MK_UNUSED /* LONG JUMP on error */
547}
#define OT_retObj_SET_I64(nat)
#define ReadI64_doc
#define MkBufferStreamReadI64(...)
signed long long MK_I64
8 byte wide integer data-type

◆ rbmkkernel_MkBufferStreamC_ReadI8()

static OT_ProcRet rbmkkernel_MkBufferStreamC_ReadI8 ( MkBufferStreamC_ARGS )
static

Ruby: doc_mk_rb_BufferStreamReadI8 C-API
read a val_out from the MkBufferStreamC

Definition at line 550 of file MkBufferStreamC_rb.c.

550 {
554 MK_I8 val_out;
555 MkErrorC_Check(hdl,MkBufferStreamReadI8 (hdl, &val_out));
556 OT_retObj_SET_I8(val_out);
557 end: MK_UNUSED /* LONG JUMP on error */
559}
#define OT_retObj_SET_I8(nat)
#define ReadI8_doc
#define MkBufferStreamReadI8(...)
signed char MK_I8
1 byte byte data-type

◆ rbmkkernel_MkBufferStreamC_ReadItemExists()

static OT_ProcRet rbmkkernel_MkBufferStreamC_ReadItemExists ( MkBufferStreamC_ARGS )
static

Ruby: bool bus.ReadItemExists() C-API
check if an item exists in the read-data-package

Definition at line 430 of file MkBufferStreamC_rb.c.

430 {
435 end: MK_UNUSED /* LONG JUMP on error */
437}
#define ReadItemExists_doc
#define MkBufferStreamReadItemExists(...)

◆ rbmkkernel_MkBufferStreamC_ReadL_END()

static OT_ProcRet rbmkkernel_MkBufferStreamC_ReadL_END ( MkBufferStreamC_ARGS )
static

Ruby: bus.ReadL_END() C-API
END read a list-item-type from the MkBufferStreamC

Definition at line 440 of file MkBufferStreamC_rb.c.

440 {
446 end: MK_UNUSED /* LONG JUMP on error */
448}
#define OT_retObj_SET_None
#define ReadL_END_doc
#define MkBufferStreamReadL_END(...)

◆ rbmkkernel_MkBufferStreamC_ReadL_START()

static OT_ProcRet rbmkkernel_MkBufferStreamC_ReadL_START ( MkBufferStreamC_ARGS )
static

Ruby: bus.ReadL_START(?buf:MkBufferC=nil?) C-API
START read a list-item-type from the MkBufferStreamC

Definition at line 451 of file MkBufferStreamC_rb.c.

451 {
454 MK_BUF buf = NULL;
459 end: MK_UNUSED /* LONG JUMP on error */
461}
#define ReadL_START_doc
#define MkBufferStreamReadL_START(...)
#define OT_CHECK_BUF(val, nullB)

◆ rbmkkernel_MkBufferStreamC_ReadLONG()

static OT_ProcRet rbmkkernel_MkBufferStreamC_ReadLONG ( MkBufferStreamC_ARGS )
static

Ruby: long bus.ReadLONG() C-API
read the long native object from the MkBufferStreamC

Definition at line 562 of file MkBufferStreamC_rb.c.

562 {
566 MK_LONG val_out;
567 MkErrorC_Check(hdl,MkBufferStreamReadLONG (hdl, &val_out));
568 OT_retObj_SET_LONG(val_out);
569 end: MK_UNUSED /* LONG JUMP on error */
571}
#define OT_retObj_SET_LONG(nat)
#define ReadLONG_doc
#define MkBufferStreamReadLONG(...)
long MK_LONG
4/8 byte long data-type

◆ rbmkkernel_MkBufferStreamC_ReadSTR()

static OT_ProcRet rbmkkernel_MkBufferStreamC_ReadSTR ( MkBufferStreamC_ARGS )
static

Ruby: doc_mk_rb_BufferStreamReadSTR C-API
read a val_out from the MkBufferStreamC

Definition at line 574 of file MkBufferStreamC_rb.c.

574 {
578 MK_STRN val_out;
579 MkErrorC_Check(hdl,MkBufferStreamReadSTR (hdl, &val_out));
580 OT_retObj_SET_STR(val_out);
581 end: MK_UNUSED /* LONG JUMP on error */
583}
#define OT_retObj_SET_STR(nat)
#define ReadSTR_doc
#define MkBufferStreamReadSTR(...)
const MK_STRB * MK_STRN
constant string pointer data-type

◆ rbmkkernel_MkBufferStreamC_ReadUndo()

static OT_ProcRet rbmkkernel_MkBufferStreamC_ReadUndo ( MkBufferStreamC_ARGS )
static

Ruby: bus.ReadUndo() C-API
undo the last MkBufferStreamC READ function call …

Definition at line 464 of file MkBufferStreamC_rb.c.

464 {
470 end: MK_UNUSED /* LONG JUMP on error */
472}
#define ReadUndo_doc
#define MkBufferStreamReadUndo(...)