theSq3Lite 10.0 NHI1 - theKernel - theLink - theConfig - theSq3Lite - theCompiler - theBrain - theGuard - theLib - theATL
c - tcl - atl - cs - py - rb - jv - cc
Loading...
Searching...
No Matches
MkBufferC_ToObject_lng.h File Reference

MkBufferC_ToObject_lng.h - 18 Feb 2025 - aotto1968. More...

Go to the source code of this file.

Macros

#define MkBufferC_ToObject_helper(TT, TTT)
 

Functions

OT_ProcRet NS MkBufferC_ToObject (MkBufferC_ARGS)
 

Detailed Description

MkBufferC_ToObject_lng.h - 18 Feb 2025 - aotto1968.

Version
4684148787fa5645445ef6586be6ebb79f4f1890
Date
Tue Feb 18 14:42:21 2025 +0100
Author
aotto1968 aotto.nosp@m.1968.nosp@m.@t-on.nosp@m.line.nosp@m..de

Definition in file MkBufferC_ToObject_lng.h.

Macro Definition Documentation

◆ MkBufferC_ToObject_helper

#define MkBufferC_ToObject_helper ( TT,
TTT )
Value:
case MK_##TT##T: { \
MK_##TTT val_out=0; \
MkErrorC_Check(hdl,MkBufferGet##TT (hdl, &val_out)); \
OT_retObj_SET_##TTT(val_out) \
break; \
} \

Definition at line 13 of file MkBufferC_ToObject_lng.h.

13#define MkBufferC_ToObject_helper(TT,TTT) \
14 case MK_##TT##T: { \
15 MK_##TTT val_out=0; \
16 MkErrorC_Check(hdl,MkBufferGet##TT (hdl, &val_out)); \
17 OT_retObj_SET_##TTT(val_out) \
18 break; \
19 } \
20

Function Documentation

◆ MkBufferC_ToObject()

OT_ProcRet NS MkBufferC_ToObject ( MkBufferC_ARGS )

Definition at line 21 of file MkBufferC_ToObject_lng.h.

21 {
23 OT_SETUP_NOARG(ToObject_doc)
25 switch (hdl->var.type) {
34 case MK_LSTT: {
36 MkErrorC_Check(hdl,MkBufferGetBFL (hdl, &bfl));
37 OT_MK_CALL_0(bfl,MkBufferListC,ToList,retObj);
38 MkRefDecr_X(bfl);
39 break;
40 }
41 case MK_BINT: {
42 MkBinaryR val_out;
43 MkErrorC_Check(hdl,MkBufferGetBIN(hdl, &val_out));
44 OT_retObj_SET_BIN(val_out.data,val_out.size);
45 break;
46 }
47 }
48 goto end;
49 error: MK_UNUSED
51 end:
53}
#define OT_MK_CALL_0(obj, cls, meth, ret)
#define OT_SETUP_NOARG(d)
#define OT_retObj_SET_Error
#define OT_retObj_RETURN
#define OT_retObj_SET_BIN(nat, len)
#define OT_CHECK_NOARGS
#define MkErrorC_Check(mng, PROC)
#define MkBufferC_ToObject_helper(TT, TTT)
#define OT_SETUP_hdl
Definition Sq3BlobC_rb.c:90
#define MkBufferGetBIN(...)
#define MkBufferGetBFL(...)
#define MkBufferListCreate(...)
#define MK_UNUSED
MK_BINT
MK_LSTT
#define MkRefDecr_X(x)
MK_SIZE size
MK_BINN data