theKernel 10.0 NHI1 - theKernel - theLink - theConfig - theSq3Lite - theCompiler - theBrain - theGuard
c - tcl - py - jv - cc
Loading...
Searching...
No Matches
MkBufferStreamC_Read_CC_API

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

+ Collaboration diagram for MkBufferStreamC_Read_CC_API:

Functions

MkBufferListCccmkkernel::MkBufferStreamC::ReadALL (MkBufferListC *val_inout=NULL)
  C++: MkBufferListC* bus.ReadALL(MkBufferListC* val_inout = NULL) C-API
get a temporary MkBufferListC from all data in the MkBufferStreamC
 
MkBufferListCccmkkernel::MkBufferStreamC::ReadBFL ()
  C++: MkBufferListC* bus.ReadBFL() C-API
read a MkBufferListC from the MkBufferStreamC
 
MkBufferCccmkkernel::MkBufferStreamC::ReadBUF ()
  C++: MkBufferC* bus.ReadBUF() C-API
read a val_out from the MkBufferStreamC
 
MkTypeE ccmkkernel::MkBufferStreamC::ReadGetNextType () const
  C++: MkTypeE bus.ReadGetNextType() C-API
get the type (MkTypeE) of the next Item in the MkBufferStreamC or "0" if not available
 
MK_NUM ccmkkernel::MkBufferStreamC::ReadGetNumItems () const
  C++: MK_NUM bus.ReadGetNumItems() C-API
get the number of items left in the MkBufferStreamC
 
MK_BOOL ccmkkernel::MkBufferStreamC::ReadItemExists () const
  C++: MK_BOOL bus.ReadItemExists() C-API
check if an item exists in the read-data-package
 
void ccmkkernel::MkBufferStreamC::ReadL_END ()
  C++: bus.ReadL_END() C-API
END read a list-item-type from the MkBufferStreamC
 
void ccmkkernel::MkBufferStreamC::ReadL_START (MkBufferC *buf=NULL)
  C++: bus.ReadL_START(MkBufferC* buf = NULL) C-API
START read a list-item-type from the MkBufferStreamC
 
void ccmkkernel::MkBufferStreamC::ReadL_START (const MkBufferC &buf)
  C++: bus.ReadL_START(MkBufferC* buf = NULL) C-API
START read a list-item-type from the MkBufferStreamC
 
void ccmkkernel::MkBufferStreamC::ReadUndo ()
  C++: bus.ReadUndo() C-API
undo the last MkBufferStreamC READ function call …
 
MK_BNP ccmkkernel::MkBufferStreamC::ReadBIN ()
  C++: doc_mk_cc_BufferStreamReadBIN C-API
read a val_out from the MkBufferStreamC
 
MK_BOL ccmkkernel::MkBufferStreamC::ReadBOL ()
  C++: doc_mk_cc_BufferStreamReadBOL C-API
read a val_out from the MkBufferStreamC
 
MK_DBL ccmkkernel::MkBufferStreamC::ReadDBL ()
  C++: doc_mk_cc_BufferStreamReadDBL C-API
read a val_out from the MkBufferStreamC
 
MK_FLT ccmkkernel::MkBufferStreamC::ReadFLT ()
  C++: doc_mk_cc_BufferStreamReadFLT C-API
read a val_out from the MkBufferStreamC
 
MK_I32 ccmkkernel::MkBufferStreamC::ReadI32 ()
  C++: doc_mk_cc_BufferStreamReadI32 C-API
read a val_out from the MkBufferStreamC
 
MK_I64 ccmkkernel::MkBufferStreamC::ReadI64 ()
  C++: doc_mk_cc_BufferStreamReadI64 C-API
read a val_out from the MkBufferStreamC
 
MK_I8 ccmkkernel::MkBufferStreamC::ReadI8 ()
  C++: doc_mk_cc_BufferStreamReadI8 C-API
read a val_out from the MkBufferStreamC
 
MK_LONG ccmkkernel::MkBufferStreamC::ReadLONG ()
  C++: MK_LONG bus.ReadLONG() C-API
read the long native object from the MkBufferStreamC
 
MK_STRN ccmkkernel::MkBufferStreamC::ReadSTR ()
  C++: doc_mk_cc_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.

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

Function Documentation

◆ ReadALL()

MkBufferListC * ccmkkernel::MkBufferStreamC::ReadALL ( MkBufferListC * val_inout = NULL)
inline

C++: MkBufferListC* bus.ReadALL(MkBufferListC* val_inout = NULL) C-API
get a temporary MkBufferListC from all data in the MkBufferStreamC

Definition at line 219 of file MkBufferStreamC_inline_cc.hh.

219 {
220 MK_UNUSED auto bus = getBUS(MK_NULL_NO);
221 MkRtSetup_X(bus);
222 MK_BFL val_inout_hdl = MkBufferListC::getBFL(val_inout,MK_NULL_YES);
223 enum MkErrorE errVal = MkBufferStreamReadALL(bus, &val_inout_hdl);
224 MkErrorC_Check(bus, errVal);
226 }
#define MkErrorC_Check(errObj, errVal)
MK_BFL getBFL(bool nullB=MK_NULL_NO) const
return the LibMsgqueObject from current MkBufferListC instance
static MkBufferListC * MkBufferListC_ObjNew(MK_RT const mkrt, MK_BFL hdl)
return MkBufferListC from LibMsgqueObject
struct MkBufferListS * MK_BFL
class-shortcut for struct MkBufferListS *, all shortcut using the XX_YYY syntax (only for public API)...
MK_BUS getBUS(bool nullB=MK_NULL_NO) const
return the LibMsgqueObject from current MkBufferStreamC instance
#define MkBufferStreamReadALL(...)
#define MK_NULL_NO
flag, not allow NULL
#define MK_NULL_YES
flag, allow NULL
#define MK_UNUSED
mark unnused variables and functions
MkErrorE
collection for the different error-codes …
#define MK_RT_CALL
#define MkRtSetup_X(x)

◆ ReadBFL()

MkBufferListC * ccmkkernel::MkBufferStreamC::ReadBFL ( )
inline

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

Definition at line 231 of file MkBufferStreamC_inline_cc.hh.

231 {
232 MK_UNUSED auto bus = getBUS(MK_NULL_NO);
233 MkRtSetup_X(bus);
234 MK_BFL val_out;
235 enum MkErrorE errVal = MkBufferStreamReadBFL(bus, &val_out);
236 MkErrorC_Check(bus, errVal);
238 }
#define MkBufferStreamReadBFL(...)

◆ ReadBIN()

MK_BNP ccmkkernel::MkBufferStreamC::ReadBIN ( )
inline

C++: doc_mk_cc_BufferStreamReadBIN C-API
read a val_out from the MkBufferStreamC

Definition at line 313 of file MkBufferStreamC_inline_cc.hh.

313 {
314 MK_UNUSED auto bus = getBUS(MK_NULL_NO);
315 MkRtSetup_X(bus);
316 MkBinaryR val_out_ref;
317 enum MkErrorE errVal = MkBufferStreamReadBIN(bus, &val_out_ref);
318 ErrorCheck(errVal);
319 MK_BNP val_out = std::make_pair(val_out_ref.size,val_out_ref.data);
320 return val_out;
321 }
#define MkBufferStreamReadBIN(...)
void ErrorCheck(enum MkErrorE err, MK_STRN const caller=__builtin_FUNCTION(), MK_I32 const line=__builtin_LINE()) const
std::pair< MK_SIZE, MK_BINN > MK_BNP

◆ ReadBOL()

MK_BOL ccmkkernel::MkBufferStreamC::ReadBOL ( )
inline

C++: doc_mk_cc_BufferStreamReadBOL C-API
read a val_out from the MkBufferStreamC

Definition at line 324 of file MkBufferStreamC_inline_cc.hh.

324 {
325 MK_UNUSED auto bus = getBUS(MK_NULL_NO);
326 MkRtSetup_X(bus);
327 MK_BOL val_out;
328 enum MkErrorE errVal = MkBufferStreamReadBOL(bus, &val_out);
329 MkErrorC_Check(bus, errVal);
330 return val_out != 0;
331 }
#define MkBufferStreamReadBOL(...)
unsigned char MK_BOL
1 byte boolean data-type

◆ ReadBUF()

MkBufferC * ccmkkernel::MkBufferStreamC::ReadBUF ( )
inline

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

Definition at line 241 of file MkBufferStreamC_inline_cc.hh.

241 {
242 MK_UNUSED auto bus = getBUS(MK_NULL_NO);
243 MkRtSetup_X(bus);
244 MK_BUF val_out;
245 enum MkErrorE errVal = MkBufferStreamReadBUF(bus, &val_out);
246 MkErrorC_Check(bus, errVal);
248 }
static MkBufferC * MkBufferC_ObjNew(MK_RT const mkrt, MK_BUF hdl)
return MkBufferC from LibMsgqueObject
struct MkBufferS * MK_BUF
class-shortcut for struct MkBufferS *, all shortcut using the XX_YYY syntax (only for public API) …
#define MkBufferStreamReadBUF(...)

◆ ReadDBL()

MK_DBL ccmkkernel::MkBufferStreamC::ReadDBL ( )
inline

C++: doc_mk_cc_BufferStreamReadDBL C-API
read a val_out from the MkBufferStreamC

Definition at line 334 of file MkBufferStreamC_inline_cc.hh.

334 {
335 MK_UNUSED auto bus = getBUS(MK_NULL_NO);
336 MkRtSetup_X(bus);
337 MK_DBL val_out;
338 enum MkErrorE errVal = MkBufferStreamReadDBL(bus, &val_out);
339 MkErrorC_Check(bus, errVal);
340 return val_out;
341 }
#define MkBufferStreamReadDBL(...)
double MK_DBL
8 byte double data-type

◆ ReadFLT()

MK_FLT ccmkkernel::MkBufferStreamC::ReadFLT ( )
inline

C++: doc_mk_cc_BufferStreamReadFLT C-API
read a val_out from the MkBufferStreamC

Definition at line 344 of file MkBufferStreamC_inline_cc.hh.

344 {
345 MK_UNUSED auto bus = getBUS(MK_NULL_NO);
346 MkRtSetup_X(bus);
347 MK_FLT val_out;
348 enum MkErrorE errVal = MkBufferStreamReadFLT(bus, &val_out);
349 MkErrorC_Check(bus, errVal);
350 return val_out;
351 }
#define MkBufferStreamReadFLT(...)
float MK_FLT
4 byte float data-type

◆ ReadGetNextType()

MkTypeE ccmkkernel::MkBufferStreamC::ReadGetNextType ( ) const
inline

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

Definition at line 253 of file MkBufferStreamC_inline_cc.hh.

253 {
254 MK_UNUSED auto bus = getBUSN(MK_NULL_NO);
255 MkRtSetup_X(bus);
256 enum MkTypeE __retVal__L = MkBufferStreamReadGetNextType(bus);
257 return __retVal__L;
258 }
MK_BUSN getBUSN(bool nullB=MK_NULL_NO) const
(const) return the LibMsgqueObject from current MkBufferStreamC instance
#define MkBufferStreamReadGetNextType(...)
MkTypeE
basic data-types supported by Programming-Language-Micro-Kernel (PLMK) …

◆ ReadGetNumItems()

MK_NUM ccmkkernel::MkBufferStreamC::ReadGetNumItems ( ) const
inline

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

Definition at line 261 of file MkBufferStreamC_inline_cc.hh.

261 {
262 MK_UNUSED auto bus = getBUSN(MK_NULL_NO);
263 MkRtSetup_X(bus);
264 MK_NUM __retVal__L = MkBufferStreamReadGetNumItems(bus);
265 return __retVal__L;
266 }
#define MkBufferStreamReadGetNumItems(...)
int32_t MK_NUM
array size data-type ('num' items in array …

◆ ReadI32()

MK_I32 ccmkkernel::MkBufferStreamC::ReadI32 ( )
inline

C++: doc_mk_cc_BufferStreamReadI32 C-API
read a val_out from the MkBufferStreamC

Definition at line 354 of file MkBufferStreamC_inline_cc.hh.

354 {
355 MK_UNUSED auto bus = getBUS(MK_NULL_NO);
356 MkRtSetup_X(bus);
357 MK_I32 val_out;
358 enum MkErrorE errVal = MkBufferStreamReadI32(bus, &val_out);
359 MkErrorC_Check(bus, errVal);
360 return val_out;
361 }
#define MkBufferStreamReadI32(...)
signed int MK_I32
4 byte integer data-type

◆ ReadI64()

MK_I64 ccmkkernel::MkBufferStreamC::ReadI64 ( )
inline

C++: doc_mk_cc_BufferStreamReadI64 C-API
read a val_out from the MkBufferStreamC

Definition at line 364 of file MkBufferStreamC_inline_cc.hh.

364 {
365 MK_UNUSED auto bus = getBUS(MK_NULL_NO);
366 MkRtSetup_X(bus);
367 MK_I64 val_out;
368 enum MkErrorE errVal = MkBufferStreamReadI64(bus, &val_out);
369 MkErrorC_Check(bus, errVal);
370 return val_out;
371 }
#define MkBufferStreamReadI64(...)
signed long long MK_I64
8 byte wide integer data-type

◆ ReadI8()

MK_I8 ccmkkernel::MkBufferStreamC::ReadI8 ( )
inline

C++: doc_mk_cc_BufferStreamReadI8 C-API
read a val_out from the MkBufferStreamC

Definition at line 374 of file MkBufferStreamC_inline_cc.hh.

374 {
375 MK_UNUSED auto bus = getBUS(MK_NULL_NO);
376 MkRtSetup_X(bus);
377 MK_I8 val_out;
378 enum MkErrorE errVal = MkBufferStreamReadI8(bus, &val_out);
379 MkErrorC_Check(bus, errVal);
380 return (MK_I8)val_out;
381 }
#define MkBufferStreamReadI8(...)
signed char MK_I8
1 byte byte data-type

◆ ReadItemExists()

MK_BOOL ccmkkernel::MkBufferStreamC::ReadItemExists ( ) const
inline

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

Definition at line 269 of file MkBufferStreamC_inline_cc.hh.

269 {
270 MK_UNUSED auto bus = getBUSN(MK_NULL_NO);
271 MkRtSetup_X(bus);
272 MK_BOOL __retVal__L = MkBufferStreamReadItemExists(bus);
273 return __retVal__L;
274 }
#define MkBufferStreamReadItemExists(...)
bool MK_BOOL
real bool data-type

◆ ReadL_END()

void ccmkkernel::MkBufferStreamC::ReadL_END ( )
inline

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

Definition at line 277 of file MkBufferStreamC_inline_cc.hh.

277 {
278 MK_UNUSED auto bus = getBUS(MK_NULL_NO);
279 MkRtSetup_X(bus);
280 enum MkErrorE errVal = MkBufferStreamReadL_END(bus);
281 MkErrorC_Check(bus, errVal);
282 }
#define MkBufferStreamReadL_END(...)

◆ ReadL_START() [1/2]

void ccmkkernel::MkBufferStreamC::ReadL_START ( const MkBufferC & buf)
inline

C++: bus.ReadL_START(MkBufferC* buf = NULL) C-API
START read a list-item-type from the MkBufferStreamC

Definition at line 294 of file MkBufferStreamC_inline_cc.hh.

294 {
295 MK_UNUSED auto bus = getBUS(MK_NULL_NO);
296 MkRtSetup_X(bus);
297 const MK_BUF buf_hdl = MkBufferC::getBUF(buf,MK_NULL_NO);
298 enum MkErrorE errVal = MkBufferStreamReadL_START(bus, buf_hdl);
299 MkErrorC_Check(bus, errVal);
300 }
MK_BUF getBUF(bool nullB=MK_NULL_NO) const
return the LibMsgqueObject from current MkBufferC instance
#define MkBufferStreamReadL_START(...)

◆ ReadL_START() [2/2]

void ccmkkernel::MkBufferStreamC::ReadL_START ( MkBufferC * buf = NULL)
inline

C++: bus.ReadL_START(MkBufferC* buf = NULL) C-API
START read a list-item-type from the MkBufferStreamC

Definition at line 285 of file MkBufferStreamC_inline_cc.hh.

285 {
286 MK_UNUSED auto bus = getBUS(MK_NULL_NO);
287 MkRtSetup_X(bus);
288 MK_BUF buf_hdl = MkBufferC::getBUF(buf,MK_NULL_YES);
289 enum MkErrorE errVal = MkBufferStreamReadL_START(bus, buf_hdl);
290 MkErrorC_Check(bus, errVal);
291 }

◆ ReadLONG()

MK_LONG ccmkkernel::MkBufferStreamC::ReadLONG ( )
inline

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

Definition at line 384 of file MkBufferStreamC_inline_cc.hh.

384 {
385 MK_UNUSED auto bus = getBUS(MK_NULL_NO);
386 MkRtSetup_X(bus);
387 MK_LONG val_out;
388 enum MkErrorE errVal = MkBufferStreamReadLONG(bus, &val_out);
389 MkErrorC_Check(bus, errVal);
390 return val_out;
391 }
#define MkBufferStreamReadLONG(...)
long MK_LONG
4/8 byte long data-type

◆ ReadSTR()

MK_STRN ccmkkernel::MkBufferStreamC::ReadSTR ( )
inline

C++: doc_mk_cc_BufferStreamReadSTR C-API
read a val_out from the MkBufferStreamC

Definition at line 394 of file MkBufferStreamC_inline_cc.hh.

394 {
395 MK_UNUSED auto bus = getBUS(MK_NULL_NO);
396 MkRtSetup_X(bus);
397 MK_STRN val_out;
398 enum MkErrorE errVal = MkBufferStreamReadSTR(bus, &val_out);
399 MkErrorC_Check(bus, errVal);
400 return val_out;
401 }
#define MkBufferStreamReadSTR(...)
const MK_STRB * MK_STRN
constant string pointer data-type

◆ ReadUndo()

void ccmkkernel::MkBufferStreamC::ReadUndo ( )
inline

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

Definition at line 303 of file MkBufferStreamC_inline_cc.hh.

303 {
304 MK_UNUSED auto bus = getBUS(MK_NULL_NO);
305 MkRtSetup_X(bus);
306 enum MkErrorE errVal = MkBufferStreamReadUndo(bus);
307 MkErrorC_Check(bus, errVal);
308 }
#define MkBufferStreamReadUndo(...)