theKernel 10.0
Loading...
Searching...
No Matches
MkBufferStreamC_inline_cc.hh
Go to the documentation of this file.
1
9/* LABEL-NO */
10
11/*****************************************************************************/
12/* */
13/* context */
14/* */
15/*****************************************************************************/
16
17namespace ccmkkernel {
18
19 inline MK_PTR MkBufferStreamC::MkBufferStreamC_selfCreateTLS(MK_OBJ obj) {
20 return new MkBufferStreamC(obj);
21 }
22
23 inline MK_PTR MkBufferStreamC::MkBufferStreamC_selfCreate (MK_RT_ARGS MK_OBJ obj, MK_PTR const env) {
24 MK_BUS inst = reinterpret_cast<MK_BUS>(obj);
25 return MkOBJ_R(inst).obj_protect.isLocal ? MkBufferStreamC_selfCreateTLS(obj) : new MkBufferStreamC(obj);
26 }
27
28 inline MkBufferStreamC::MkBufferStreamC (const MkBufferStreamC *copy) {
29 if (copy == NULL) throw MkReferenceNullExceptionC("MkBufferStreamC");
30 MkRtSetup_O(copy->hdl);
32 }
33
34 inline MkBufferStreamC::MkBufferStreamC (const MkBufferStreamC& copy) {
35 MkRtSetup_O(copy.hdl);
37 }
38
40 MkRtSetup_O(copy.hdl);
41 MkObjCopy(hdl,copy.hdl);
42 return *this;
43 }
44
46 MkRtSetup_O(copy->hdl);
47 MkObjCopy(hdl,copy->hdl);
48 return *this;
49 }
50
51 // BEGIN-MkBufferStreamC - created by 'cc_MqC.tcl -i NHI1_HOME/theKernel/c/gen/c_mkkernel.meta' - DO NOT change
52
56
57 // doc-key: MkBufferStreamC,MkBufferStreamC-Class-Export,sc_
58
65
66 // doc-key: MkBufferStreamC,MkBufferStreamC-Class-Export,om_
67
68 // skip class-overload: HandleGet = MkBufferStreamHandleGet → MkObjectHandleGet
69
71 // MkBufferStreamC_Class_CC_API
72
76
77 // doc-key: MkBufferStreamC,MkBufferStreamC-Class-Introspection,oc_
78
81 MK_UNUSED auto bus = getBUS();
82 MK_BUS __retVal__L = MkBufferStreamNext(bus);
84 }
85
88 MK_UNUSED auto bus = getBUS();
89 MK_BUS __retVal__L = MkBufferStreamPrev(bus);
91 }
92
93 // doc-key: MkBufferStreamC,MkBufferStreamC-Class-Introspection,sc_
94
101
103 // MkBufferStreamC_Class_CC_API
104
108
109 // doc-key: MkBufferStreamC,MkBufferStreamC-Class-Misc,sc_
110
117
119 // MkBufferStreamC_Class_CC_API
120
124
125 // doc-key: MkBufferStreamC,MkBufferStreamC-Misc,oc_
126
129 MK_UNUSED auto bus = getBUS();
130 MK_BUSN src_hdl = MkBufferStreamC::getBUSN(src);
131 MK_BUS __retVal__L = MkBufferStreamCopy(bus, src_hdl);
133 }
134
137 MK_UNUSED auto bus = getBUS();
138 const MK_BUSN src_hdl = MkBufferStreamC::getBUSN(src);
139 MK_BUS __retVal__L = MkBufferStreamCopy(bus, src_hdl);
141 }
142
145 MK_UNUSED auto bus = getBUS();
146 MK_BUS __retVal__L = MkBufferStreamReset(bus);
148 }
149
152 MK_UNUSED auto bus = getBUSN();
153 MK_BFL __retVal__L = MkBufferStreamToBFL(bus);
155 }
156
157 // doc-key: MkBufferStreamC,MkBufferStreamC-Misc,om_
158
159 // skip class-overload: Log = MkBufferStreamLog → MkObjectLog
160
161 // skip class-overload: Log = MkBufferStreamLog → MkObjectLog
162
165 MK_UNUSED auto bus = getBUS();
167 }
168
171 MK_UNUSED auto bus = getBUS();
173 }
174
175 // skip class-overload: ToString = MkBufferStreamToString → MkObjectToString
176
178 // MkBufferStreamC_Misc_CC_API
179
183
184 // doc-key: MkBufferStreamC,MkBufferStreamC-Read,oci
185
188 MK_UNUSED auto bus = getBUS();
189 MK_BFL val_inout_hdl = MkBufferListC::getBFL__null_allow(val_inout);
190 enum MkErrorE errVal = MkBufferStreamReadALL(bus, &val_inout_hdl);
191 MkErrorC_Check(bus, errVal);
193 }
194
195 // doc-key: MkBufferStreamC,MkBufferStreamC-Read,oco
196
199 MK_UNUSED auto bus = getBUS();
200 MK_BFL val_out;
201 enum MkErrorE errVal = MkBufferStreamReadBFL(bus, &val_out);
202 MkErrorC_Check(bus, errVal);
204 }
205
208 MK_UNUSED auto bus = getBUS();
209 MK_BUF val_out;
210 enum MkErrorE errVal = MkBufferStreamReadBUF(bus, &val_out);
211 MkErrorC_Check(bus, errVal);
213 }
214
215 // doc-key: MkBufferStreamC,MkBufferStreamC-Read,om_
216
219 MK_UNUSED auto bus = getBUSN();
220 enum MkTypeE __retVal__L = MkBufferStreamReadGetNextType(bus);
221 return __retVal__L;
222 }
223
226 MK_UNUSED auto bus = getBUSN();
227 MK_NUM __retVal__L = MkBufferStreamReadGetNumItems(bus);
228 return __retVal__L;
229 }
230
233 MK_UNUSED auto bus = getBUSN();
234 MK_BOOL __retVal__L = MkBufferStreamReadItemExists(bus);
235 return __retVal__L;
236 }
237
240 MK_UNUSED auto bus = getBUS();
241 enum MkErrorE errVal = MkBufferStreamReadL_END(bus);
242 MkErrorC_Check(bus, errVal);
243 }
244
247 MK_UNUSED auto bus = getBUS();
249 enum MkErrorE errVal = MkBufferStreamReadL_START(bus, buf_hdl);
250 MkErrorC_Check(bus, errVal);
251 }
252
254 inline void MkBufferStreamC::ReadL_START (const MkBufferC& buf) {
255 MK_UNUSED auto bus = getBUS();
256 const MK_BUF buf_hdl = MkBufferC::getBUF(buf);
257 enum MkErrorE errVal = MkBufferStreamReadL_START(bus, buf_hdl);
258 MkErrorC_Check(bus, errVal);
259 }
260
263 MK_UNUSED auto bus = getBUS();
264 enum MkErrorE errVal = MkBufferStreamReadUndo(bus);
265 MkErrorC_Check(bus, errVal);
266 }
267
268 // doc-key: MkBufferStreamC,MkBufferStreamC-Read,omo
269
272 MK_UNUSED auto bus = getBUS();
273 MkBinaryR val_out_ref;
274 enum MkErrorE errVal = MkBufferStreamReadBIN(bus, &val_out_ref);
275 ErrorCheck(errVal);
276 MK_BNP val_out = std::make_pair(val_out_ref.size,val_out_ref.data);
277 return val_out;
278 }
279
282 MK_UNUSED auto bus = getBUS();
283 MK_BOL val_out;
284 enum MkErrorE errVal = MkBufferStreamReadBOL(bus, &val_out);
285 MkErrorC_Check(bus, errVal);
286 return val_out != 0;
287 }
288
291 MK_UNUSED auto bus = getBUS();
292 MK_DBL val_out;
293 enum MkErrorE errVal = MkBufferStreamReadDBL(bus, &val_out);
294 MkErrorC_Check(bus, errVal);
295 return val_out;
296 }
297
300 MK_UNUSED auto bus = getBUS();
301 MK_FLT val_out;
302 enum MkErrorE errVal = MkBufferStreamReadFLT(bus, &val_out);
303 MkErrorC_Check(bus, errVal);
304 return val_out;
305 }
306
309 MK_UNUSED auto bus = getBUS();
310 MK_I32 val_out;
311 enum MkErrorE errVal = MkBufferStreamReadI32(bus, &val_out);
312 MkErrorC_Check(bus, errVal);
313 return val_out;
314 }
315
318 MK_UNUSED auto bus = getBUS();
319 MK_I64 val_out;
320 enum MkErrorE errVal = MkBufferStreamReadI64(bus, &val_out);
321 MkErrorC_Check(bus, errVal);
322 return val_out;
323 }
324
327 MK_UNUSED auto bus = getBUS();
328 MK_I8 val_out;
329 enum MkErrorE errVal = MkBufferStreamReadI8(bus, &val_out);
330 MkErrorC_Check(bus, errVal);
331 return (MK_I8)val_out;
332 }
333
336 MK_UNUSED auto bus = getBUS();
337 MK_LONG val_out;
338 enum MkErrorE errVal = MkBufferStreamReadLONG(bus, &val_out);
339 MkErrorC_Check(bus, errVal);
340 return val_out;
341 }
342
345 MK_UNUSED auto bus = getBUS();
346 MK_STRN val_out;
347 enum MkErrorE errVal = MkBufferStreamReadSTR(bus, &val_out);
348 MkErrorC_Check(bus, errVal);
349 return val_out;
350 }
351
353 // MkBufferStreamC_Read_CC_API
354
358
359 // doc-key: MkBufferStreamC,MkBufferStreamC-TOR,oC_
360
363 MK_UNUSED auto bus = getBUS();
364 MK_BUS __retVal__L = MkBufferStreamMerge(bus);
365 if (__retVal__L == NULL) {
366 throw MkInitError("MkBufferStreamC::Merge");
367 }
368 return MkBufferStreamC::MkBufferStreamC_ObjCreate(MK_RT_CALL __retVal__L);
369 }
370
371 // doc-key: MkBufferStreamC,MkBufferStreamC-TOR,oCx
372
375 MK_UNUSED auto src = getBUSN();
376 MK_BUS __retVal__L = MkBufferStreamDup(src);
377 if (__retVal__L == NULL) {
378 throw MkInitError("MkBufferStreamC::Dup");
379 }
380 return MkBufferStreamC::MkBufferStreamC_ObjCreate(MK_RT_CALL __retVal__L);
381 }
382
383 // doc-key: MkBufferStreamC,MkBufferStreamC-TOR,sCc
384
386 inline MK_OBJ MkBufferStreamC::CTOR (MK_NUM size) {
388 MK_BUS __retVal__L = MkBufferStreamCreate(NULL, size);
389 if (__retVal__L == NULL) {
390 throw MkInitError("MkBufferStreamC::CTOR");
391 }
392 return (MK_OBJ)__retVal__L;
393 }
394
398 MK_BUS __retVal__L = MkBufferStreamCreate(NULL, size);
399 if (__retVal__L == NULL) {
400 throw MkInitError("MkBufferStreamC::Create");
401 }
402 return MkBufferStreamC::MkBufferStreamC_ObjCreate(MK_RT_CALL __retVal__L);
403 }
404
408 MK_BUS __retVal__L = MkBufferStreamCreate1024(size);
409 if (__retVal__L == NULL) {
410 throw MkInitError("MkBufferStreamC::Create1024");
411 }
412 return MkBufferStreamC::MkBufferStreamC_ObjCreate(MK_RT_CALL __retVal__L);
413 }
414
418 MK_BUS __retVal__L = MkBufferStreamCreate16384(size);
419 if (__retVal__L == NULL) {
420 throw MkInitError("MkBufferStreamC::Create16384");
421 }
422 return MkBufferStreamC::MkBufferStreamC_ObjCreate(MK_RT_CALL __retVal__L);
423 }
424
428 MK_BUS __retVal__L = MkBufferStreamCreate256(size);
429 if (__retVal__L == NULL) {
430 throw MkInitError("MkBufferStreamC::Create256");
431 }
432 return MkBufferStreamC::MkBufferStreamC_ObjCreate(MK_RT_CALL __retVal__L);
433 }
434
438 MK_BUS __retVal__L = MkBufferStreamCreate64(size);
439 if (__retVal__L == NULL) {
440 throw MkInitError("MkBufferStreamC::Create64");
441 }
442 return MkBufferStreamC::MkBufferStreamC_ObjCreate(MK_RT_CALL __retVal__L);
443 }
444
445 // doc-key: MkBufferStreamC,MkBufferStreamC-TOR,sc_
446
450 MK_BUS __retVal__L = MkBufferStreamCreateTLS(tlsName, resetB);
452 }
453
455 inline MkBufferStreamC* MkBufferStreamC::CreateTLS (const std::string& tlsName, MK_BOOL resetB) {
457 const MK_STRN tlsName_hdl = tlsName.c_str();
458 MK_BUS __retVal__L = MkBufferStreamCreateTLS(tlsName_hdl, resetB);
460 }
461
463 // MkBufferStreamC_TOR_CC_API
464
468
469 // doc-key: MkBufferStreamC,MkBufferStreamC-Write,om_
470
472 inline void MkBufferStreamC::WriteBFL (const MkBufferListC* bfl) {
473 MK_UNUSED auto bus = getBUS();
474 MK_BFLN bfl_hdl = MkBufferListC::getBFLN(bfl);
475 enum MkErrorE errVal = MkBufferStreamWriteBFL(bus, bfl_hdl);
476 MkErrorC_Check(bus, errVal);
477 }
478
480 inline void MkBufferStreamC::WriteBFL (const MkBufferListC& bfl) {
481 MK_UNUSED auto bus = getBUS();
482 const MK_BFLN bfl_hdl = MkBufferListC::getBFLN(bfl);
483 enum MkErrorE errVal = MkBufferStreamWriteBFL(bus, bfl_hdl);
484 MkErrorC_Check(bus, errVal);
485 }
486
489 MK_UNUSED auto bus = getBUS();
490 const MkBinaryR val_ref = MkBinaryCreate(val.first,val.second);
491 enum MkErrorE errVal = MkBufferStreamWriteBIN(bus, val_ref);
492 MkErrorC_Check(bus, errVal);
493 }
494
497 MK_UNUSED auto bus = getBUS();
498 enum MkErrorE errVal = MkBufferStreamWriteBOL(bus, (MK_BOL)(val?1:0));
499 MkErrorC_Check(bus, errVal);
500 }
501
503 inline void MkBufferStreamC::WriteBUF (const MkBufferC* val) {
504 MK_UNUSED auto bus = getBUS();
505 MK_BUFN val_hdl = MkBufferC::getBUFN(val);
506 enum MkErrorE errVal = MkBufferStreamWriteBUF(bus, val_hdl);
507 MkErrorC_Check(bus, errVal);
508 }
509
511 inline void MkBufferStreamC::WriteBUF (const MkBufferC& val) {
512 MK_UNUSED auto bus = getBUS();
513 const MK_BUFN val_hdl = MkBufferC::getBUFN(val);
514 enum MkErrorE errVal = MkBufferStreamWriteBUF(bus, val_hdl);
515 MkErrorC_Check(bus, errVal);
516 }
517
520 MK_UNUSED auto bus = getBUS();
521 MK_BUSN add_hdl = MkBufferStreamC::getBUSN(add);
522 enum MkErrorE errVal = MkBufferStreamWriteBUS_FLAT(bus, add_hdl);
523 MkErrorC_Check(bus, errVal);
524 }
525
528 MK_UNUSED auto bus = getBUS();
529 const MK_BUSN add_hdl = MkBufferStreamC::getBUSN(add);
530 enum MkErrorE errVal = MkBufferStreamWriteBUS_FLAT(bus, add_hdl);
531 MkErrorC_Check(bus, errVal);
532 }
533
536 MK_UNUSED auto bus = getBUS();
537 enum MkErrorE errVal = MkBufferStreamWriteDBL(bus, val);
538 MkErrorC_Check(bus, errVal);
539 }
540
543 MK_UNUSED auto bus = getBUS();
544 enum MkErrorE errVal = MkBufferStreamWriteFLT(bus, val);
545 MkErrorC_Check(bus, errVal);
546 }
547
550 MK_UNUSED auto bus = getBUS();
551 enum MkErrorE errVal = MkBufferStreamWriteHDL(bus, val);
552 MkErrorC_Check(bus, errVal);
553 }
554
557 MK_UNUSED auto bus = getBUS();
558 enum MkErrorE errVal = MkBufferStreamWriteI32(bus, val);
559 MkErrorC_Check(bus, errVal);
560 }
561
564 MK_UNUSED auto bus = getBUS();
565 enum MkErrorE errVal = MkBufferStreamWriteI64(bus, val);
566 MkErrorC_Check(bus, errVal);
567 }
568
570 inline void MkBufferStreamC::WriteI8 (MK_I8 val) {
571 MK_UNUSED auto bus = getBUS();
572 enum MkErrorE errVal = MkBufferStreamWriteI8(bus, (MK_I8)(val));
573 MkErrorC_Check(bus, errVal);
574 }
575
578 MK_UNUSED auto bus = getBUS();
579 enum MkErrorE errVal = MkBufferStreamWriteLONG(bus, val);
580 MkErrorC_Check(bus, errVal);
581 }
582
585 MK_UNUSED auto bus = getBUS();
586 enum MkErrorE errVal = MkBufferStreamWriteL_END(bus);
587 MkErrorC_Check(bus, errVal);
588 }
589
592 MK_UNUSED auto bus = getBUS();
593 MK_BFL bfl_hdl = MkBufferListC::getBFL(bfl);
594 enum MkErrorE errVal = MkBufferStreamWriteL_FLAT(bus, bfl_hdl);
595 MkErrorC_Check(bus, errVal);
596 }
597
600 MK_UNUSED auto bus = getBUS();
601 const MK_BFL bfl_hdl = MkBufferListC::getBFL(bfl);
602 enum MkErrorE errVal = MkBufferStreamWriteL_FLAT(bus, bfl_hdl);
603 MkErrorC_Check(bus, errVal);
604 }
605
608 MK_UNUSED auto bus = getBUS();
609 enum MkErrorE errVal = MkBufferStreamWriteL_START(bus);
610 MkErrorC_Check(bus, errVal);
611 }
612
614 inline void MkBufferStreamC::WriteSTR (MK_STRN val, MK_NUM len) {
615 MK_UNUSED auto bus = getBUS();
616 enum MkErrorE errVal = MkBufferStreamWriteSTR(bus, val, len);
617 MkErrorC_Check(bus, errVal);
618 }
619
621 inline void MkBufferStreamC::WriteSTR (const std::string& val, MK_NUM len) {
622 MK_UNUSED auto bus = getBUS();
623 const MK_STRN val_hdl = val.c_str();
624 enum MkErrorE errVal = MkBufferStreamWriteSTR(bus, val_hdl, len);
625 MkErrorC_Check(bus, errVal);
626 }
627
629 inline void MkBufferStreamC::WriteV (MK_STRN fmt, ... ) {
630 MK_UNUSED auto bus = getBUS();
631 va_list ap;
632 va_start (ap, fmt);
633 enum MkErrorE errVal = MkBufferStreamWriteVL(bus, fmt, ap);
634 va_end (ap);
635 MkErrorC_Check(bus, errVal);
636 }
637
639 inline void MkBufferStreamC::WriteV (const std::string& fmt, ... ) {
640 MK_UNUSED auto bus = getBUS();
641 const MK_STRN fmt_hdl = fmt.c_str();
642 va_list ap;
643 va_start (ap, fmt);
644 enum MkErrorE errVal = MkBufferStreamWriteVL(bus, fmt_hdl, ap);
645 va_end (ap);
646 MkErrorC_Check(bus, errVal);
647 }
648
650 inline void MkBufferStreamC::WriteVL (MK_STRN fmt, va_list ap) {
651 MK_UNUSED auto bus = getBUS();
652 enum MkErrorE errVal = MkBufferStreamWriteVL(bus, fmt, ap);
653 MkErrorC_Check(bus, errVal);
654 }
655
657 inline void MkBufferStreamC::WriteVL (const std::string& fmt, va_list ap) {
658 MK_UNUSED auto bus = getBUS();
659 const MK_STRN fmt_hdl = fmt.c_str();
660 enum MkErrorE errVal = MkBufferStreamWriteVL(bus, fmt_hdl, ap);
661 MkErrorC_Check(bus, errVal);
662 }
663
665 // MkBufferStreamC_Write_CC_API
666
667 // END-MkBufferStreamC - created by 'cc_MqC.tcl -i NHI1_HOME/theKernel/c/gen/c_mkkernel.meta' - DO NOT change
668
669} // END - namespace "ccmkkernel"
#define MkErrorC_Check(errObj, errVal)
The ABSTRACT-CLASS used to store a native-type-data-item defined by PRIMITIVE TYPE … → C-API: libm...
The CLASS used to store a list of MkBufferS items into a flat array… → C-API: libmkkernel::MkBuffe...
The ABSTRACT-CLASS MkBufferStreamS is used for package-based serialized IO … → C-API: libmkkernel:...
constructor return MK_NULL
reference argument is MK_NULL
static MkBufferC * MkBufferC_ObjNew(MK_RT_ARGS MK_BUF hdl)
return MkBufferC from LibMsgqueObject
MK_BUF getBUF() const
return the LibMsgqueObject from current MkBufferC instance
MK_BUFN getBUFN() const
(const) return the LibMsgqueObject from current MkBufferC instance
MK_BUF getBUF__null_allow() const
return the LibMsgqueObject from current MkBufferC instance
MK_BFL getBFL() const
return the LibMsgqueObject from current MkBufferListC instance
MK_BFLN getBFLN() const
(const) return the LibMsgqueObject from current MkBufferListC instance
static MkBufferListC * MkBufferListC_ObjNew(MK_RT_ARGS MK_BFL hdl)
return MkBufferListC from LibMsgqueObject
MK_BFL getBFL__null_allow() const
return the LibMsgqueObject from current MkBufferListC instance
MK_BUSN getBUSN() const
(const) return the LibMsgqueObject from current MkBufferStreamC instance
MK_BUS getBUS() const
return the LibMsgqueObject from current MkBufferStreamC instance
static MkBufferStreamC * MkBufferStreamC_ObjNew(MK_RT_ARGS MK_BUS hdl)
return MkBufferStreamC from LibMsgqueObject
MkBufferStreamC & operator=(const MkBufferStreamC &buf)
static MkBufferStreamC * Instances()
C++: [static] MkBufferStreamC* MkBufferStreamC::Instances() → C-API get head-instance from linke...
MkBufferStreamC * Next()
C++: MkBufferStreamC* bus.Next() → C-API get next instance from linked-list of MkBufferStreamS ...
MkBufferStreamC * Prev()
C++: MkBufferStreamC* bus.Prev() → C-API get previous instance from linked-list of MkBufferStre...
static MkBufferStreamC * HandleResolve(MK_HDL netHdl)
C++: [static] MkBufferStreamC* MkBufferStreamC::HandleResolve(MK_HDL netHdl) → C-API Handle-Reso...
static MkBufferStreamC * GetNull()
C++: [static] MkBufferStreamC* MkBufferStreamC::GetNull() → C-API Null-Slot - return a MkBufferS...
#define MkBufferStreamHandleResolve(...)
#define MkBufferStreamInstances()
static MK_BUS MkBufferStreamPrev(MK_BUS const bus)
get previous instance from linked-list of MkBufferStreamS type
struct MkBufferStreamS * MK_BUS
class-shortcut for struct MkBufferStreamS *, all shortcut using the XX_YYY syntax (only for public AP...
static MK_BUS MkBufferStreamNext(MK_BUS const bus)
get next instance from linked-list of MkBufferStreamS type
static MK_BUS MkBufferStreamGetNull(void)
Null-Slot - return a MkBufferStreamC typed NULL instance …
void PosToStart()
C++: bus.PosToStart() → C-API set the current-access-position to the start of MkBufferStreamC …
MkBufferStreamC * Copy(const MkBufferStreamC *src) const
C++: MkBufferStreamC* bus.Copy(const MkBufferStreamC* src) → C-API copy the MkBufferStreamC fro...
void ResetFull()
C++: bus.ResetFull() → C-API reset a MkBufferStreamC to the length zero and free allocated stor...
MkBufferStreamC * Reset()
C++: MkBufferStreamC* bus.Reset() → C-API reset a MkBufferStreamC to the length zero …
MkBufferListC * ToBFL() const
C++: MkBufferListC* bus.ToBFL() → C-API convert the bus into a MkBufferListC …
#define MkBufferStreamPosToStart(...)
#define MkBufferStreamToBFL(...)
#define MkBufferStreamCopy(...)
#define MkBufferStreamReset(...)
#define MkBufferStreamResetFull(...)
MkBufferC * ReadBUF()
C++: MkBufferC* bus.ReadBUF() → C-API read a val_out from the MkBufferStreamC …
MK_STRN ReadSTR()
C++: doc_mk_cc_BufferStreamReadSTR → C-API read a val_out from the MkBufferStreamC …
void ReadL_START(MkBufferC *buf=NULL)
C++: bus.ReadL_START(MkBufferC* buf = NULL) → C-API START read a list-item-type from the MkBuff...
MK_LONG ReadLONG()
C++: MK_LONG bus.ReadLONG() → C-API read the long native object from the MkBufferStreamC …
MK_FLT ReadFLT()
C++: doc_mk_cc_BufferStreamReadFLT → C-API read a val_out from the MkBufferStreamC …
void ReadUndo()
C++: bus.ReadUndo() → C-API undo the last MkBufferStreamC READ function call …
void ReadL_END()
C++: bus.ReadL_END() → C-API END read a list-item-type from the MkBufferStreamC …
MK_NUM ReadGetNumItems() const
C++: MK_NUM bus.ReadGetNumItems() → C-API get the number of items left in the MkBufferStreamC …
MK_BOOL ReadItemExists() const
C++: MK_BOOL bus.ReadItemExists() → C-API check if an item exists in the read-data-package …
MK_I8 ReadI8()
C++: doc_mk_cc_BufferStreamReadI8 → C-API read a val_out from the MkBufferStreamC …
MK_BOL ReadBOL()
C++: doc_mk_cc_BufferStreamReadBOL → C-API read a val_out from the MkBufferStreamC …
MkBufferListC * ReadALL(MkBufferListC *val_inout=NULL)
C++: MkBufferListC* bus.ReadALL(MkBufferListC* val_inout = NULL) → C-API get a temporary MkBuff...
MkBufferListC * ReadBFL()
C++: MkBufferListC* bus.ReadBFL() → C-API read a MkBufferListC from the MkBufferStreamC …
MkTypeE ReadGetNextType() const
C++: MkTypeE bus.ReadGetNextType() → C-API get the type (MkTypeE) of the next Item in the MkBuf...
MK_DBL ReadDBL()
C++: doc_mk_cc_BufferStreamReadDBL → C-API read a val_out from the MkBufferStreamC …
MK_BNP ReadBIN()
C++: doc_mk_cc_BufferStreamReadBIN → C-API read a val_out from the MkBufferStreamC …
MK_I32 ReadI32()
C++: doc_mk_cc_BufferStreamReadI32 → C-API read a val_out from the MkBufferStreamC …
MK_I64 ReadI64()
C++: doc_mk_cc_BufferStreamReadI64 → C-API read a val_out from the MkBufferStreamC …
#define MkBufferStreamReadALL(...)
#define MkBufferStreamReadBUF(...)
#define MkBufferStreamReadBFL(...)
#define MkBufferStreamReadFLT(...)
#define MkBufferStreamReadUndo(...)
#define MkBufferStreamReadGetNumItems(...)
#define MkBufferStreamReadI32(...)
#define MkBufferStreamReadBIN(...)
#define MkBufferStreamReadL_START(...)
#define MkBufferStreamReadDBL(...)
#define MkBufferStreamReadI8(...)
#define MkBufferStreamReadGetNextType(...)
#define MkBufferStreamReadI64(...)
#define MkBufferStreamReadBOL(...)
#define MkBufferStreamReadLONG(...)
#define MkBufferStreamReadL_END(...)
#define MkBufferStreamReadSTR(...)
#define MkBufferStreamReadItemExists(...)
MkBufferStreamC * Merge()
C++: [constructor] MkBufferStreamC* bus.Merge() → C-API Merge-Constructor - create a new MkBuffe...
static MkBufferStreamC * Create256(MK_NUM size=0)
C++: [constructor,static] MkBufferStreamC* MkBufferStreamC::Create256(MK_NUM size = 0) → C-API c...
static MkBufferStreamC * Create(MK_NUM size=0)
C++: [constructor,static] MkBufferStreamC* MkBufferStreamC::Create(MK_NUM size = 0) → C-API crea...
MkBufferStreamC * Dup() const
C++: [constructor] MkBufferStreamC* src.Dup() → C-API Dup-Constructor - create a new MkBufferStr...
static MkBufferStreamC * CreateTLS(MK_STRN tlsName, MK_BOOL resetB=true)
C++: [static] MkBufferStreamC* MkBufferStreamC::CreateTLS(MK_STRN tlsName, MK_BOOL resetB = true) → ...
static MkBufferStreamC * Create64(MK_NUM size=0)
C++: [constructor,static] MkBufferStreamC* MkBufferStreamC::Create64(MK_NUM size = 0) → C-API ca...
static MkBufferStreamC * Create1024(MK_NUM size=0)
C++: [constructor,static] MkBufferStreamC* MkBufferStreamC::Create1024(MK_NUM size = 0) → C-API ...
static MkBufferStreamC * Create16384(MK_NUM size=0)
C++: [constructor,static] MkBufferStreamC* MkBufferStreamC::Create16384(MK_NUM size = 0) → C-API ...
#define MkBufferStreamCreate16384(...)
#define MkBufferStreamDup(...)
#define MkBufferStreamCreate(...)
#define MkBufferStreamCreate1024(...)
#define MkBufferStreamCreateTLS(...)
#define MkBufferStreamMerge(...)
#define MkBufferStreamCreate64(...)
#define MkBufferStreamCreate256(...)
void WriteBOL(MK_BOL val)
C++: doc_mk_cc_BufferStreamWriteBOL → C-API write a PRIMITIVE TYPE into the MkBufferStreamC …
void WriteV(MK_STRN fmt,...)
C++: bus.WriteV(MK_STRN fmt, ... ) → C-API write format-string into the MkBufferStreamC …
void WriteBUS_FLAT(const MkBufferStreamC *add)
C++: bus.WriteBUS_FLAT(const MkBufferStreamC* add) → C-API write a MkBufferStreamC into the MkB...
void WriteBUF(const MkBufferC *val)
C++: bus.WriteBUF(const MkBufferC* val) → C-API write a PRIMITIVE TYPE into the MkBufferStrea...
void WriteFLT(MK_FLT val)
C++: doc_mk_cc_BufferStreamWriteFLT → C-API write a PRIMITIVE TYPE into the MkBufferStreamC …
void WriteI32(MK_I32 val)
C++: doc_mk_cc_BufferStreamWriteI32 → C-API write a PRIMITIVE TYPE into the MkBufferStreamC …
void WriteBFL(const MkBufferListC *bfl)
C++: bus.WriteBFL(const MkBufferListC* bfl) → C-API write a MkBufferListC into the MkBufferStre...
void WriteL_START()
C++: bus.WriteL_START() → C-API START write a list-item-type into the MkBufferStreamC …
void WriteBIN(MK_BNP val)
C++: doc_mk_cc_BufferStreamWriteBIN → C-API write a PRIMITIVE TYPE into the MkBufferStreamC …
void WriteVL(MK_STRN fmt, va_list ap)
C++: bus.WriteVL(MK_STRN fmt, va_list ap) → C-API write format-string into the MkBufferStreamC ...
void WriteLONG(MK_LONG val)
C++: bus.WriteLONG(MK_LONG val) → C-API write the long native object into the MkBufferStreamC …
void WriteL_FLAT(MkBufferListC *bfl)
C++: bus.WriteL_FLAT(MkBufferListC* bfl) → C-API write a MkBufferListC FLAT into the MkBufferSt...
void WriteSTR(MK_STRN val, MK_NUM len=-1)
C++: doc_mk_cc_BufferStreamWriteSTR → C-API write a PRIMITIVE TYPE into the MkBufferStreamC …
void WriteI8(MK_I8 val)
C++: doc_mk_cc_BufferStreamWriteI8 → C-API write a PRIMITIVE TYPE into the MkBufferStreamC …
void WriteL_END()
C++: bus.WriteL_END() → C-API END write a list-item-type into the MkBufferStreamC …
void WriteI64(MK_I64 val)
C++: doc_mk_cc_BufferStreamWriteI64 → C-API write a PRIMITIVE TYPE into the MkBufferStreamC …
void WriteHDL(MK_I32 val)
C++: bus.WriteHDL(MK_I32 val) → C-API write the handle into the MkBufferStreamC …
void WriteDBL(MK_DBL val)
C++: doc_mk_cc_BufferStreamWriteDBL → C-API write a PRIMITIVE TYPE into the MkBufferStreamC …
#define MkBufferStreamWriteI8(...)
#define MkBufferStreamWriteBUF(...)
#define MkBufferStreamWriteL_END(...)
#define MkBufferStreamWriteDBL(...)
#define MkBufferStreamWriteVL(...)
#define MkBufferStreamWriteBOL(...)
#define MkBufferStreamWriteL_FLAT(...)
#define MkBufferStreamWriteLONG(...)
#define MkBufferStreamWriteBIN(...)
#define MkBufferStreamWriteBUS_FLAT(...)
#define MkBufferStreamWriteSTR(...)
#define MkBufferStreamWriteI64(...)
#define MkBufferStreamWriteHDL(...)
#define MkBufferStreamWriteBFL(...)
#define MkBufferStreamWriteL_START(...)
#define MkBufferStreamWriteFLT(...)
#define MkBufferStreamWriteI32(...)
static MkBinaryR MkBinaryCreate(MK_SIZE size, MK_BINN data)
create a binary from data and size ...
#define MK_UNUSED
mark unnused variables and functions
MkTypeE
basic data-types supported by Programming-Language-Micro-Kernel (PLMK) …
MkErrorE
collection for the different error-codes …
double MK_DBL
8 byte double data-type
unsigned char MK_BOL
1 byte boolean data-type
signed char MK_I8
1 byte byte data-type
float MK_FLT
4 byte float data-type
signed long long MK_I64
8 byte wide integer data-type
long MK_LONG
4/8 byte long data-type
bool MK_BOOL
real bool data-type
int32_t MK_HDL
4 byte int handle data-type
int32_t MK_NUM
array size data-type ('num' items in array …
signed int MK_I32
4 byte integer data-type
MK_PTRB * MK_PTR
generic pointer data-type
const MK_STRB * MK_STRN
constant string pointer data-type
void ErrorCheck(enum MkErrorE err, MK_STRN const caller=__builtin_FUNCTION(), MK_I32 const line=__builtin_LINE()) const
void atomInit(MK_OBJ obj)
struct MkObjectS * MK_OBJ
class-shortcut for struct MkObjectS *, all shortcut using the XX_YYY syntax (only for public API) …
#define MkOBJ_R(x)
cast a known-object into an MkObjectS reference
#define MkObjCopy(...)
#define MkObjDup(...)
#define MkRtSetup_O(o)
#define MK_RT_CALL
#define MK_RT_ARGS
#define MkRtSetup_NULL
namespace for the CcMkKernel "C++"-API
std::pair< MK_SIZE, MK_BINN > MK_BNP
binary data default format …
MK_BINN data
pointer to the binary data
MK_SIZE size
size of the data pointer
The CLASS used to store a list of MkBufferS items into a flat array…
The ABSTRACT-CLASS used to store a native-type-data-item defined by PRIMITIVE TYPE …
The ABSTRACT-CLASS MkBufferStreamS is used for package-based serialized IO …