theLink 10.0
Loading...
Searching...
No Matches
MqContextC_ReadApi_Atom_RB_API

MqContextC - read a single-data-item outof a read-data-packageMore...

+ Collaboration diagram for MqContextC_ReadApi_Atom_RB_API:

Functions

static OT_ProcRet rbmqmsgque_MqContextC_ReadALL (MqContextC_ARGS)
  Ruby: MkBufferListC ctx.ReadALL(?val_inout:MkBufferListC=nil?) C-API
get a temporary MkBufferListC from all data in the read-data-package
 
static OT_ProcRet rbmqmsgque_MqContextC_ReadBFL (MqContextC_ARGS)
  Ruby: MkBufferListC ctx.ReadBFL() C-API
get a temporary MkBufferListC from next list-item in the read-data-package
 
static OT_ProcRet rbmqmsgque_MqContextC_ReadBUF (MqContextC_ARGS)
  Ruby: MkBufferC ctx.ReadBUF() C-API
get a temporary MkBufferC from the read-data-package
 
static OT_ProcRet rbmqmsgque_MqContextC_ReadBIN (MqContextC_ARGS)
  Ruby: doc_mq_rb_ReadBIN C-API
generic function to read an MK_BIN object from the read-data-package object …
 
static OT_ProcRet rbmqmsgque_MqContextC_ReadBOL (MqContextC_ARGS)
  Ruby: doc_mq_rb_ReadBOL C-API
read a PRIMITIVE TYPE from the read-data-package
 
static OT_ProcRet rbmqmsgque_MqContextC_ReadBinaryR (MqContextC_ARGS)
  Ruby: binary ctx.ReadBinaryR() C-API
read a MkBinaryR from the read-data-package
 
static OT_ProcRet rbmqmsgque_MqContextC_ReadDBL (MqContextC_ARGS)
  Ruby: doc_mq_rb_ReadDBL C-API
read a PRIMITIVE TYPE from the read-data-package
 
static OT_ProcRet rbmqmsgque_MqContextC_ReadFLT (MqContextC_ARGS)
  Ruby: doc_mq_rb_ReadFLT C-API
read a PRIMITIVE TYPE from the read-data-package
 
static OT_ProcRet rbmqmsgque_MqContextC_ReadHDL (MqContextC_ARGS)
  Ruby: MK_HDL ctx.ReadHDL() C-API
read the handle from the read-data-package
 
static OT_ProcRet rbmqmsgque_MqContextC_ReadI16 (MqContextC_ARGS)
  Ruby: doc_mq_rb_ReadI16 C-API
read a PRIMITIVE TYPE from the read-data-package
 
static OT_ProcRet rbmqmsgque_MqContextC_ReadI32 (MqContextC_ARGS)
  Ruby: doc_mq_rb_ReadI32 C-API
read a PRIMITIVE TYPE from the read-data-package
 
static OT_ProcRet rbmqmsgque_MqContextC_ReadI64 (MqContextC_ARGS)
  Ruby: doc_mq_rb_ReadI64 C-API
read a PRIMITIVE TYPE from the read-data-package
 
static OT_ProcRet rbmqmsgque_MqContextC_ReadI8 (MqContextC_ARGS)
  Ruby: doc_mq_rb_ReadI8 C-API
read a PRIMITIVE TYPE from the read-data-package
 
static OT_ProcRet rbmqmsgque_MqContextC_ReadLONG (MqContextC_ARGS)
  Ruby: long ctx.ReadLONG() C-API
read the long native object from the read-data-package
 
static OT_ProcRet rbmqmsgque_MqContextC_ReadSTR (MqContextC_ARGS)
  Ruby: doc_mq_rb_ReadSTR C-API
read a PRIMITIVE TYPE from the read-data-package
 
static OT_ProcRet rbmqmsgque_MqContextC_ReadStringR (MqContextC_ARGS)
  Ruby: string ctx.ReadStringR() C-API
read a MkStringR from the read-data-package
 
OT_ProcRet rbmqmsgque_MqContextC_ReadLIST (MqContextC_ARGS)
  Ruby: [list...] ctx.ReadLIST() C-API
get all arguments as native list …
 
OT_ProcRet rbmqmsgque_MqContextC_ReadNEXT (MqContextC_ARGS)
  Ruby: obj ctx.ReadNEXT() C-API
get the next argument as native object …
 

Detailed Description

MqContextC - read a single-data-item outof a read-data-package

Function Documentation

◆ rbmqmsgque_MqContextC_ReadALL()

static OT_ProcRet rbmqmsgque_MqContextC_ReadALL ( MqContextC_ARGS )
static

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

Definition at line 1625 of file MqContextC_rb.c.

1625 {
1628 MkBufferListCreateTLS_T(val_inout,10);
1631 MkErrorC_Check(hdl,MqReadALL (hdl, &val_inout));
1632 OT_retObj_SET_BFL(val_inout);
1633 end: MK_UNUSED /* LONG JUMP on error */
1635}
#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)
#define MK_NULL_YES
#define MK_UNUSED
#define MqReadALL(...)
#define OT_CHECK_BFL(val, nullB)

◆ rbmqmsgque_MqContextC_ReadBFL()

static OT_ProcRet rbmqmsgque_MqContextC_ReadBFL ( MqContextC_ARGS )
static

Ruby: MkBufferListC ctx.ReadBFL() C-API
get a temporary MkBufferListC from next list-item in the read-data-package

Definition at line 1640 of file MqContextC_rb.c.

1640 {
1644 MK_BFL val_out;
1645 MkErrorC_Check(hdl,MqReadBFL (hdl, &val_out));
1646 OT_retObj_SET_BFL(val_out);
1647 end: MK_UNUSED /* LONG JUMP on error */
1649}
#define OT_SETUP_NOARG(d)
#define ReadBFL_doc
#define MqReadBFL(...)

◆ rbmqmsgque_MqContextC_ReadBIN()

static OT_ProcRet rbmqmsgque_MqContextC_ReadBIN ( MqContextC_ARGS )
static

Ruby: doc_mq_rb_ReadBIN C-API
generic function to read an MK_BIN object from the read-data-package object …

Definition at line 1666 of file MqContextC_rb.c.

1666 {
1670 MkBinaryR val_out;
1671 MkErrorC_Check(hdl,MqReadBIN (hdl, &val_out));
1672 MkBinaryR retVal = val_out;
1674 end: MK_UNUSED /* LONG JUMP on error */
1676}
#define OT_GET__ME_REF_MkBinaryR(b)
#define OT_retObj_SET(val)
#define ReadBIN_doc
#define MqReadBIN(...)

◆ rbmqmsgque_MqContextC_ReadBinaryR()

static OT_ProcRet rbmqmsgque_MqContextC_ReadBinaryR ( MqContextC_ARGS )
static

Ruby: binary ctx.ReadBinaryR() C-API
read a MkBinaryR from the read-data-package

Definition at line 1691 of file MqContextC_rb.c.

1691 {
1695 MkBinaryR val_out;
1696 MkErrorC_Check(hdl,MqReadBinaryR (hdl, &val_out));
1697 MkBinaryR retVal = val_out;
1699 end: MK_UNUSED /* LONG JUMP on error */
1701}
#define ReadBinaryR_doc
#define MqReadBinaryR(...)

◆ rbmqmsgque_MqContextC_ReadBOL()

static OT_ProcRet rbmqmsgque_MqContextC_ReadBOL ( MqContextC_ARGS )
static

Ruby: doc_mq_rb_ReadBOL C-API
read a PRIMITIVE TYPE from the read-data-package

Definition at line 1679 of file MqContextC_rb.c.

1679 {
1683 MK_BOL val_out;
1684 MkErrorC_Check(hdl,MqReadBOL (hdl, &val_out));
1685 OT_retObj_SET_BOL(val_out == 1);
1686 end: MK_UNUSED /* LONG JUMP on error */
1688}
#define OT_retObj_SET_BOL(nat)
#define ReadBOL_doc
unsigned char MK_BOL
#define MqReadBOL(...)

◆ rbmqmsgque_MqContextC_ReadBUF()

static OT_ProcRet rbmqmsgque_MqContextC_ReadBUF ( MqContextC_ARGS )
static

Ruby: MkBufferC ctx.ReadBUF() C-API
get a temporary MkBufferC from the read-data-package

Definition at line 1652 of file MqContextC_rb.c.

1652 {
1656 MK_BUF val_out;
1657 MkErrorC_Check(hdl,MqReadBUF (hdl, &val_out));
1658 OT_retObj_SET_BUF(val_out);
1659 end: MK_UNUSED /* LONG JUMP on error */
1661}
#define OT_retObj_SET_BUF(nat)
#define ReadBUF_doc
#define MqReadBUF(...)

◆ rbmqmsgque_MqContextC_ReadDBL()

static OT_ProcRet rbmqmsgque_MqContextC_ReadDBL ( MqContextC_ARGS )
static

Ruby: doc_mq_rb_ReadDBL C-API
read a PRIMITIVE TYPE from the read-data-package

Definition at line 1704 of file MqContextC_rb.c.

1704 {
1708 MK_DBL val_out;
1709 MkErrorC_Check(hdl,MqReadDBL (hdl, &val_out));
1710 OT_retObj_SET_DBL(val_out);
1711 end: MK_UNUSED /* LONG JUMP on error */
1713}
#define OT_retObj_SET_DBL(nat)
#define ReadDBL_doc
double MK_DBL
#define MqReadDBL(...)

◆ rbmqmsgque_MqContextC_ReadFLT()

static OT_ProcRet rbmqmsgque_MqContextC_ReadFLT ( MqContextC_ARGS )
static

Ruby: doc_mq_rb_ReadFLT C-API
read a PRIMITIVE TYPE from the read-data-package

Definition at line 1716 of file MqContextC_rb.c.

1716 {
1720 MK_FLT val_out;
1721 MkErrorC_Check(hdl,MqReadFLT (hdl, &val_out));
1722 OT_retObj_SET_FLT(val_out);
1723 end: MK_UNUSED /* LONG JUMP on error */
1725}
#define OT_retObj_SET_FLT(nat)
#define ReadFLT_doc
float MK_FLT
#define MqReadFLT(...)

◆ rbmqmsgque_MqContextC_ReadHDL()

static OT_ProcRet rbmqmsgque_MqContextC_ReadHDL ( MqContextC_ARGS )
static

Ruby: MK_HDL ctx.ReadHDL() C-API
read the handle from the read-data-package

Definition at line 1728 of file MqContextC_rb.c.

1728 {
1732 MK_HDL val_out;
1733 MkErrorC_Check(hdl,MqReadHDL (hdl, &val_out));
1734 OT_retObj_SET_HDL(val_out);
1735 end: MK_UNUSED /* LONG JUMP on error */
1737}
#define OT_retObj_SET_HDL(nat)
#define ReadHDL_doc
int32_t MK_HDL
#define MqReadHDL(...)

◆ rbmqmsgque_MqContextC_ReadI16()

static OT_ProcRet rbmqmsgque_MqContextC_ReadI16 ( MqContextC_ARGS )
static

Ruby: doc_mq_rb_ReadI16 C-API
read a PRIMITIVE TYPE from the read-data-package

Definition at line 1740 of file MqContextC_rb.c.

1740 {
1744 MK_I16 val_out;
1745 MkErrorC_Check(hdl,MqReadI16 (hdl, &val_out));
1746 OT_retObj_SET_I16(val_out);
1747 end: MK_UNUSED /* LONG JUMP on error */
1749}
#define OT_retObj_SET_I16(nat)
#define ReadI16_doc
signed short int MK_I16
#define MqReadI16(...)

◆ rbmqmsgque_MqContextC_ReadI32()

static OT_ProcRet rbmqmsgque_MqContextC_ReadI32 ( MqContextC_ARGS )
static

Ruby: doc_mq_rb_ReadI32 C-API
read a PRIMITIVE TYPE from the read-data-package

Definition at line 1752 of file MqContextC_rb.c.

1752 {
1756 MK_I32 val_out;
1757 MkErrorC_Check(hdl,MqReadI32 (hdl, &val_out));
1758 OT_retObj_SET_I32(val_out);
1759 end: MK_UNUSED /* LONG JUMP on error */
1761}
#define OT_retObj_SET_I32(nat)
#define ReadI32_doc
signed int MK_I32
#define MqReadI32(...)

◆ rbmqmsgque_MqContextC_ReadI64()

static OT_ProcRet rbmqmsgque_MqContextC_ReadI64 ( MqContextC_ARGS )
static

Ruby: doc_mq_rb_ReadI64 C-API
read a PRIMITIVE TYPE from the read-data-package

Definition at line 1764 of file MqContextC_rb.c.

1764 {
1768 MK_I64 val_out;
1769 MkErrorC_Check(hdl,MqReadI64 (hdl, &val_out));
1770 OT_retObj_SET_I64(val_out);
1771 end: MK_UNUSED /* LONG JUMP on error */
1773}
#define OT_retObj_SET_I64(nat)
#define ReadI64_doc
signed long long MK_I64
#define MqReadI64(...)

◆ rbmqmsgque_MqContextC_ReadI8()

static OT_ProcRet rbmqmsgque_MqContextC_ReadI8 ( MqContextC_ARGS )
static

Ruby: doc_mq_rb_ReadI8 C-API
read a PRIMITIVE TYPE from the read-data-package

Definition at line 1776 of file MqContextC_rb.c.

1776 {
1780 MK_I8 val_out;
1781 MkErrorC_Check(hdl,MqReadI8 (hdl, &val_out));
1782 OT_retObj_SET_I8(val_out);
1783 end: MK_UNUSED /* LONG JUMP on error */
1785}
#define OT_retObj_SET_I8(nat)
#define ReadI8_doc
signed char MK_I8
#define MqReadI8(...)

◆ rbmqmsgque_MqContextC_ReadLIST()

OT_ProcRet rbmqmsgque_MqContextC_ReadLIST ( MqContextC_ARGS )

Ruby: [list...] ctx.ReadLIST() C-API
get all arguments as native list …

Definition at line 17 of file MqContextC_ReadLIST_lng.h.

17 {
23 MK_BUF buf = NULL;
24 while (MqReadItemExists(hdl)) {
25 MqReadBUF (hdl, &buf);
26 switch (buf->var.type) {
27 case MK_I8T: { RET = OT_TMP_I8_OBJ(MkBuf2I8(buf)); break; }
28 case MK_BOLT: { RET = OT_TMP_BOL_OBJ(MkBuf2BOL(buf)); break; }
29 case MK_I16T: { RET = OT_TMP_I16_OBJ(MkBuf2I16(buf)); break; }
30 case MK_I32T: { RET = OT_TMP_I32_OBJ(MkBuf2I32(buf)); break; }
31 case MK_FLTT: { RET = OT_TMP_FLT_OBJ(MkBuf2FLT(buf)); break; }
32 case MK_I64T: { RET = OT_TMP_I64_OBJ(MkBuf2I64(buf)); break; }
33 case MK_DBLT: { RET = OT_TMP_DBL_OBJ(MkBuf2DBL(buf)); break; }
34 case MK_BINT: { RET = OT_TMP_BIN_OBJ(buf->storage.first.B,buf->var.cursize); break; }
35 case MK_STRT: { RET = OT_TMP_STR_OBJ(buf->storage.first.C); break; }
36 case MK_LSTT: {
38 MkErrorC_Check(hdl,MkBufferGetBFL (buf, &bfl));
39 OT_MK_CALL_0(bfl,MkBufferListC,ToList,RET);
40 MkRefDecr_X(bfl);
41 break;
42 }
43/*
44 case MQ_ROUT:
45 case MQ_LTRT: {
46 OT_ERROR_TYPE("unable to convert an 'internal' object into a 'public' object");
47 RET = OT_LNG_NULL;
48 }
49*/
50 }
51 if (RET == OT_LNG_NULL) goto error;
53 }
54 goto end;
55 error:
57 end:
59}
#define OT_MK_CALL_0(obj, cls, meth, ret)
#define OT_TMP_DBL_OBJ(val)
#define OT_retObj_SET_Error
#define OT_retObj_SET_List
#define OT_TMP_I16_OBJ(val)
#define OT_OBJ_T
#define OT_TMP_I32_OBJ(val)
#define OT_TMP_I64_OBJ(val)
#define OT_TMP_BIN_OBJ(val, len)
#define OT_retObj_APPEND(var)
#define OT_TMP_STR_OBJ(val)
#define OT_TMP_I8_OBJ(val)
#define OT_LNG_NULL
#define OT_TMP_BOL_OBJ(val)
#define OT_TMP_FLT_OBJ(val)
#define ReadLIST_doc
#define MkBuf2I64(buf)
#define MkBuf2BOL(buf)
#define MkBuf2DBL(buf)
#define MkBuf2I8(buf)
#define MkBuf2I16(buf)
#define MkBuf2FLT(buf)
#define MkBuf2I32(buf)
#define MkBufferGetBFL(...)
#define MkBufferListCreate(...)
MK_I8T
MK_I64T
MK_FLTT
MK_BINT
MK_I16T
MK_BOLT
MK_DBLT
MK_I32T
MK_STRT
MK_LSTT
#define MkRefDecr_X(x)
bool MqReadItemExists(MQ_CTX const ctx)
check if an item exists in the read-data-package …
goto error
Definition high_lng.h:251
union MkBufferU first
struct MkBufferS::@5 storage
struct MkBufferS::@4 var
MK_NUM cursize
enum MkTypeE type
MK_STRN C
MK_BIN B

◆ rbmqmsgque_MqContextC_ReadLONG()

static OT_ProcRet rbmqmsgque_MqContextC_ReadLONG ( MqContextC_ARGS )
static

Ruby: long ctx.ReadLONG() C-API
read the long native object from the read-data-package

Definition at line 1791 of file MqContextC_rb.c.

1791 {
1795 MK_LONG val_out;
1796 MkErrorC_Check(hdl,MqReadLONG (hdl, &val_out));
1797 OT_retObj_SET_LONG(val_out);
1798 end: MK_UNUSED /* LONG JUMP on error */
1800}
#define OT_retObj_SET_LONG(nat)
#define ReadLONG_doc
long MK_LONG
#define MqReadLONG(...)

◆ rbmqmsgque_MqContextC_ReadNEXT()

OT_ProcRet rbmqmsgque_MqContextC_ReadNEXT ( MqContextC_ARGS )

Ruby: obj ctx.ReadNEXT() C-API
get the next argument as native object …

Definition at line 18 of file MqContextC_ReadNEXT_lng.h.

18 {
23 MK_BUF buf = NULL;
24 MqReadBUF_E(hdl, &buf);
25 switch (buf->var.type) {
26 case MK_I8T: { RET = OT_TMP_I8_OBJ(MkBuf2I8(buf)); break; }
27 case MK_BOLT: { RET = OT_TMP_BOL_OBJ(MkBuf2BOL(buf)); break; }
28 case MK_I16T: { RET = OT_TMP_I16_OBJ(MkBuf2I16(buf)); break; }
29 case MK_I32T: { RET = OT_TMP_I32_OBJ(MkBuf2I32(buf)); break; }
30 case MK_FLTT: { RET = OT_TMP_FLT_OBJ(MkBuf2FLT(buf)); break; }
31 case MK_I64T: { RET = OT_TMP_I64_OBJ(MkBuf2I64(buf)); break; }
32 case MK_DBLT: { RET = OT_TMP_DBL_OBJ(MkBuf2DBL(buf)); break; }
33 case MK_BINT: { RET = OT_TMP_BIN_OBJ(buf->storage.first.B,buf->var.cursize); break; }
34 case MK_STRT: { RET = OT_TMP_STR_OBJ(buf->storage.first.C); break; }
35 case MK_LSTT: {
37 MkErrorC_Check(hdl,MkBufferGetBFL (buf, &bfl));
38 OT_MK_CALL_0(bfl,MkBufferListC,ToList,RET);
39 MkRefDecr_X(bfl);
40 break;
41 }
42/*
43 case MQ_ROUT:
44 case MQ_LTRT: {
45 OT_ERROR_TYPE("unable to convert an 'internal' object into a 'public' object");
46 RET = OT_LNG_NULL;
47 }
48*/
49 }
50 if (RET == OT_LNG_NULL) goto error;
51 OT_retObj_SET(RET);
52 goto end;
53 error:
55 end:
57}
#define ReadNEXT_doc
#define MqReadBUF_E(...)

◆ rbmqmsgque_MqContextC_ReadSTR()

static OT_ProcRet rbmqmsgque_MqContextC_ReadSTR ( MqContextC_ARGS )
static

Ruby: doc_mq_rb_ReadSTR C-API
read a PRIMITIVE TYPE from the read-data-package

Definition at line 1806 of file MqContextC_rb.c.

1806 {
1810 MK_STRN val_out;
1811 MkErrorC_Check(hdl,MqReadSTR (hdl, &val_out));
1812 OT_retObj_SET_STR(val_out);
1813 end: MK_UNUSED /* LONG JUMP on error */
1815}
#define OT_retObj_SET_STR(nat)
#define ReadSTR_doc
const MK_STRB * MK_STRN
#define MqReadSTR(...)

◆ rbmqmsgque_MqContextC_ReadStringR()

static OT_ProcRet rbmqmsgque_MqContextC_ReadStringR ( MqContextC_ARGS )
static

Ruby: string ctx.ReadStringR() C-API
read a MkStringR from the read-data-package

Definition at line 1818 of file MqContextC_rb.c.

1818 {
1822 MkStringR val_out;
1823 MkErrorC_Check(hdl,MqReadStringR (hdl, &val_out));
1824 MkStringR retVal = val_out;
1826 end: MK_UNUSED /* LONG JUMP on error */
1828}
#define OT_GET__ME_REF_MkStringR(b)
#define ReadStringR_doc
#define MqReadStringR(...)