theKernel 10.0
Loading...
Searching...
No Matches
MkBufferStreamC_Read_PY_API

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

+ Collaboration diagram for MkBufferStreamC_Read_PY_API:

Functions

static OT_ProcRet pymkkernel_MkBufferStreamC_ReadALL (MkBufferStreamC_ARGS)
  Python: MkBufferListC bus.ReadALL(?val_inout:MkBufferListC=None?) C-API
get a temporary MkBufferListC from all data in the MkBufferStreamC
 
static OT_ProcRet pymkkernel_MkBufferStreamC_ReadBFL (MkBufferStreamC_ARGS)
  Python: MkBufferListC bus.ReadBFL() C-API
read a MkBufferListC from the MkBufferStreamC
 
static OT_ProcRet pymkkernel_MkBufferStreamC_ReadBUF (MkBufferStreamC_ARGS)
  Python: MkBufferC bus.ReadBUF() C-API
read a val_out from the MkBufferStreamC
 
static OT_ProcRet pymkkernel_MkBufferStreamC_ReadGetNextType (MkBufferStreamC_ARGS)
  Python: MkTypeE bus.ReadGetNextType() C-API
get the type (MkTypeE) of the next Item in the MkBufferStreamC or "0" if not available
 
static OT_ProcRet pymkkernel_MkBufferStreamC_ReadGetNumItems (MkBufferStreamC_ARGS)
  Python: int32 bus.ReadGetNumItems() C-API
get the number of items left in the MkBufferStreamC
 
static OT_ProcRet pymkkernel_MkBufferStreamC_ReadItemExists (MkBufferStreamC_ARGS)
  Python: bool bus.ReadItemExists() C-API
check if an item exists in the read-data-package
 
static OT_ProcRet pymkkernel_MkBufferStreamC_ReadL_END (MkBufferStreamC_ARGS)
  Python: bus.ReadL_END() C-API
END read a list-item-type from the MkBufferStreamC
 
static OT_ProcRet pymkkernel_MkBufferStreamC_ReadL_START (MkBufferStreamC_ARGS)
  Python: bus.ReadL_START(?buf:MkBufferC=None?) C-API
START read a list-item-type from the MkBufferStreamC
 
static OT_ProcRet pymkkernel_MkBufferStreamC_ReadUndo (MkBufferStreamC_ARGS)
  Python: bus.ReadUndo() C-API
undo the last MkBufferStreamC READ function call …
 
static OT_ProcRet pymkkernel_MkBufferStreamC_ReadBIN (MkBufferStreamC_ARGS)
  Python: doc_mk_py_BufferStreamReadBIN C-API
read a val_out from the MkBufferStreamC
 
static OT_ProcRet pymkkernel_MkBufferStreamC_ReadBOL (MkBufferStreamC_ARGS)
  Python: doc_mk_py_BufferStreamReadBOL C-API
read a val_out from the MkBufferStreamC
 
static OT_ProcRet pymkkernel_MkBufferStreamC_ReadDBL (MkBufferStreamC_ARGS)
  Python: doc_mk_py_BufferStreamReadDBL C-API
read a val_out from the MkBufferStreamC
 
static OT_ProcRet pymkkernel_MkBufferStreamC_ReadFLT (MkBufferStreamC_ARGS)
  Python: doc_mk_py_BufferStreamReadFLT C-API
read a val_out from the MkBufferStreamC
 
static OT_ProcRet pymkkernel_MkBufferStreamC_ReadI32 (MkBufferStreamC_ARGS)
  Python: doc_mk_py_BufferStreamReadI32 C-API
read a val_out from the MkBufferStreamC
 
static OT_ProcRet pymkkernel_MkBufferStreamC_ReadI64 (MkBufferStreamC_ARGS)
  Python: doc_mk_py_BufferStreamReadI64 C-API
read a val_out from the MkBufferStreamC
 
static OT_ProcRet pymkkernel_MkBufferStreamC_ReadI8 (MkBufferStreamC_ARGS)
  Python: doc_mk_py_BufferStreamReadI8 C-API
read a val_out from the MkBufferStreamC
 
static OT_ProcRet pymkkernel_MkBufferStreamC_ReadLONG (MkBufferStreamC_ARGS)
  Python: long bus.ReadLONG() C-API
read the long native object from the MkBufferStreamC
 
static OT_ProcRet pymkkernel_MkBufferStreamC_ReadSTR (MkBufferStreamC_ARGS)
  Python: doc_mk_py_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

◆ pymkkernel_MkBufferStreamC_ReadALL()

static OT_ProcRet pymkkernel_MkBufferStreamC_ReadALL ( MkBufferStreamC_ARGS )
static

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

Definition at line 391 of file MkBufferStreamC_py.c.

391 {
394 MkBufferListCreateTLS_T(val_inout,10);
397 MkErrorC_Check(hdl,MkBufferStreamReadALL (hdl, &val_inout));
398 OT_retObj_SET_BFL(val_inout);
399 goto end;
400 error:
402 end:
404}
#define OT_SETUP_VARARGS(min, max, d)
#define OT_retObj_SET_Error
#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 OT_CHECK_BFL(val, nullB)

◆ pymkkernel_MkBufferStreamC_ReadBFL()

static OT_ProcRet pymkkernel_MkBufferStreamC_ReadBFL ( MkBufferStreamC_ARGS )
static

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

Definition at line 409 of file MkBufferStreamC_py.c.

409 {
413 MK_BFL val_out;
414 MkErrorC_Check(hdl,MkBufferStreamReadBFL (hdl, &val_out));
415 OT_retObj_SET_BFL(val_out);
416 goto end;
417 error:
419 end:
421}
#define OT_SETUP_NOARG(d)
#define ReadBFL_doc
#define MkBufferStreamReadBFL(...)
The CLASS used to store a list of MkBufferS items into a flat array…

◆ pymkkernel_MkBufferStreamC_ReadBIN()

static OT_ProcRet pymkkernel_MkBufferStreamC_ReadBIN ( MkBufferStreamC_ARGS )
static

Python: doc_mk_py_BufferStreamReadBIN C-API
read a val_out from the MkBufferStreamC

Definition at line 526 of file MkBufferStreamC_py.c.

526 {
530 MkBinaryR val_out;
531 MkErrorC_Check(hdl,MkBufferStreamReadBIN (hdl, &val_out));
532 MkBinaryR retVal = val_out;
534 goto end;
535 error:
537 end:
539}
#define OT_GET__ME_REF_MkBinaryR(b)
#define OT_retObj_SET(val)
#define ReadBIN_doc
#define MkBufferStreamReadBIN(...)
binary data default format …

◆ pymkkernel_MkBufferStreamC_ReadBOL()

static OT_ProcRet pymkkernel_MkBufferStreamC_ReadBOL ( MkBufferStreamC_ARGS )
static

Python: doc_mk_py_BufferStreamReadBOL C-API
read a val_out from the MkBufferStreamC

Definition at line 542 of file MkBufferStreamC_py.c.

542 {
546 MK_BOL val_out;
547 MkErrorC_Check(hdl,MkBufferStreamReadBOL (hdl, &val_out));
548 OT_retObj_SET_BOL(val_out == 1);
549 goto end;
550 error:
552 end:
554}
#define OT_retObj_SET_BOL(nat)
#define ReadBOL_doc
#define MkBufferStreamReadBOL(...)
unsigned char MK_BOL
1 byte boolean data-type

◆ pymkkernel_MkBufferStreamC_ReadBUF()

static OT_ProcRet pymkkernel_MkBufferStreamC_ReadBUF ( MkBufferStreamC_ARGS )
static

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

Definition at line 424 of file MkBufferStreamC_py.c.

424 {
428 MK_BUF val_out;
429 MkErrorC_Check(hdl,MkBufferStreamReadBUF (hdl, &val_out));
430 OT_retObj_SET_BUF(val_out);
431 goto end;
432 error:
434 end:
436}
#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 …

◆ pymkkernel_MkBufferStreamC_ReadDBL()

static OT_ProcRet pymkkernel_MkBufferStreamC_ReadDBL ( MkBufferStreamC_ARGS )
static

Python: doc_mk_py_BufferStreamReadDBL C-API
read a val_out from the MkBufferStreamC

Definition at line 557 of file MkBufferStreamC_py.c.

557 {
561 MK_DBL val_out;
562 MkErrorC_Check(hdl,MkBufferStreamReadDBL (hdl, &val_out));
563 OT_retObj_SET_DBL(val_out);
564 goto end;
565 error:
567 end:
569}
#define OT_retObj_SET_DBL(nat)
#define ReadDBL_doc
#define MkBufferStreamReadDBL(...)
double MK_DBL
8 byte double data-type

◆ pymkkernel_MkBufferStreamC_ReadFLT()

static OT_ProcRet pymkkernel_MkBufferStreamC_ReadFLT ( MkBufferStreamC_ARGS )
static

Python: doc_mk_py_BufferStreamReadFLT C-API
read a val_out from the MkBufferStreamC

Definition at line 572 of file MkBufferStreamC_py.c.

572 {
576 MK_FLT val_out;
577 MkErrorC_Check(hdl,MkBufferStreamReadFLT (hdl, &val_out));
578 OT_retObj_SET_FLT(val_out);
579 goto end;
580 error:
582 end:
584}
#define OT_retObj_SET_FLT(nat)
#define ReadFLT_doc
#define MkBufferStreamReadFLT(...)
float MK_FLT
4 byte float data-type

◆ pymkkernel_MkBufferStreamC_ReadGetNextType()

static OT_ProcRet pymkkernel_MkBufferStreamC_ReadGetNextType ( MkBufferStreamC_ARGS )
static

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

Definition at line 441 of file MkBufferStreamC_py.c.

441 {
446 goto end;
447 error:
449 end:
451}
#define OT_NEW_Mk_enum_OBJ(typ, val)
#define ReadGetNextType_doc
#define MkBufferStreamReadGetNextType(...)

◆ pymkkernel_MkBufferStreamC_ReadGetNumItems()

static OT_ProcRet pymkkernel_MkBufferStreamC_ReadGetNumItems ( MkBufferStreamC_ARGS )
static

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

Definition at line 454 of file MkBufferStreamC_py.c.

454 {
459 goto end;
460 error:
462 end:
464}
#define OT_retObj_SET_I32(nat)
#define ReadGetNumItems_doc
#define MkBufferStreamReadGetNumItems(...)

◆ pymkkernel_MkBufferStreamC_ReadI32()

static OT_ProcRet pymkkernel_MkBufferStreamC_ReadI32 ( MkBufferStreamC_ARGS )
static

Python: doc_mk_py_BufferStreamReadI32 C-API
read a val_out from the MkBufferStreamC

Definition at line 587 of file MkBufferStreamC_py.c.

587 {
591 MK_I32 val_out;
592 MkErrorC_Check(hdl,MkBufferStreamReadI32 (hdl, &val_out));
593 OT_retObj_SET_I32(val_out);
594 goto end;
595 error:
597 end:
599}
#define ReadI32_doc
#define MkBufferStreamReadI32(...)
signed int MK_I32
4 byte integer data-type

◆ pymkkernel_MkBufferStreamC_ReadI64()

static OT_ProcRet pymkkernel_MkBufferStreamC_ReadI64 ( MkBufferStreamC_ARGS )
static

Python: doc_mk_py_BufferStreamReadI64 C-API
read a val_out from the MkBufferStreamC

Definition at line 602 of file MkBufferStreamC_py.c.

602 {
606 MK_I64 val_out;
607 MkErrorC_Check(hdl,MkBufferStreamReadI64 (hdl, &val_out));
608 OT_retObj_SET_I64(val_out);
609 goto end;
610 error:
612 end:
614}
#define OT_retObj_SET_I64(nat)
#define ReadI64_doc
#define MkBufferStreamReadI64(...)
signed long long MK_I64
8 byte wide integer data-type

◆ pymkkernel_MkBufferStreamC_ReadI8()

static OT_ProcRet pymkkernel_MkBufferStreamC_ReadI8 ( MkBufferStreamC_ARGS )
static

Python: doc_mk_py_BufferStreamReadI8 C-API
read a val_out from the MkBufferStreamC

Definition at line 617 of file MkBufferStreamC_py.c.

617 {
621 MK_I8 val_out;
622 MkErrorC_Check(hdl,MkBufferStreamReadI8 (hdl, &val_out));
623 OT_retObj_SET_I8(val_out);
624 goto end;
625 error:
627 end:
629}
#define OT_retObj_SET_I8(nat)
#define ReadI8_doc
#define MkBufferStreamReadI8(...)
signed char MK_I8
1 byte byte data-type

◆ pymkkernel_MkBufferStreamC_ReadItemExists()

static OT_ProcRet pymkkernel_MkBufferStreamC_ReadItemExists ( MkBufferStreamC_ARGS )
static

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

Definition at line 467 of file MkBufferStreamC_py.c.

467 {
472 goto end;
473 error:
475 end:
477}
#define ReadItemExists_doc
#define MkBufferStreamReadItemExists(...)

◆ pymkkernel_MkBufferStreamC_ReadL_END()

static OT_ProcRet pymkkernel_MkBufferStreamC_ReadL_END ( MkBufferStreamC_ARGS )
static

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

Definition at line 480 of file MkBufferStreamC_py.c.

480 {
486 goto end;
487 error:
489 end:
491}
#define OT_retObj_SET_None
#define ReadL_END_doc
#define MkBufferStreamReadL_END(...)

◆ pymkkernel_MkBufferStreamC_ReadL_START()

static OT_ProcRet pymkkernel_MkBufferStreamC_ReadL_START ( MkBufferStreamC_ARGS )
static

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

Definition at line 494 of file MkBufferStreamC_py.c.

494 {
497 MK_BUF buf = NULL;
502 goto end;
503 error:
505 end:
507}
#define ReadL_START_doc
#define MkBufferStreamReadL_START(...)
#define OT_CHECK_BUF(val, nullB)

◆ pymkkernel_MkBufferStreamC_ReadLONG()

static OT_ProcRet pymkkernel_MkBufferStreamC_ReadLONG ( MkBufferStreamC_ARGS )
static

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

Definition at line 632 of file MkBufferStreamC_py.c.

632 {
636 MK_LONG val_out;
637 MkErrorC_Check(hdl,MkBufferStreamReadLONG (hdl, &val_out));
638 OT_retObj_SET_LONG(val_out);
639 goto end;
640 error:
642 end:
644}
#define OT_retObj_SET_LONG(nat)
#define ReadLONG_doc
#define MkBufferStreamReadLONG(...)
long MK_LONG
4/8 byte long data-type

◆ pymkkernel_MkBufferStreamC_ReadSTR()

static OT_ProcRet pymkkernel_MkBufferStreamC_ReadSTR ( MkBufferStreamC_ARGS )
static

Python: doc_mk_py_BufferStreamReadSTR C-API
read a val_out from the MkBufferStreamC

Definition at line 647 of file MkBufferStreamC_py.c.

647 {
651 MK_STRN val_out;
652 MkErrorC_Check(hdl,MkBufferStreamReadSTR (hdl, &val_out));
653 OT_retObj_SET_STR(val_out);
654 goto end;
655 error:
657 end:
659}
#define OT_retObj_SET_STR(nat)
#define ReadSTR_doc
#define MkBufferStreamReadSTR(...)
const MK_STRB * MK_STRN
constant string pointer data-type

◆ pymkkernel_MkBufferStreamC_ReadUndo()

static OT_ProcRet pymkkernel_MkBufferStreamC_ReadUndo ( MkBufferStreamC_ARGS )
static

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

Definition at line 510 of file MkBufferStreamC_py.c.

510 {
516 goto end;
517 error:
519 end:
521}
#define ReadUndo_doc
#define MkBufferStreamReadUndo(...)