theKernel 10.0
Loading...
Searching...
No Matches
MkBufferStreamC_Read_CS_API

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

+ Collaboration diagram for MkBufferStreamC_Read_CS_API:

Functions

MkBufferListC csmkkernel.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
 
MkBufferListC csmkkernel.MkBufferStreamC.ReadBFL ()
  C#: MkBufferListC bus.ReadBFL() C-API
read a MkBufferListC from the MkBufferStreamC
 
MkBufferC csmkkernel.MkBufferStreamC.ReadBUF ()
  C#: MkBufferC bus.ReadBUF() C-API
read a val_out from the MkBufferStreamC
 
MkTypeE csmkkernel.MkBufferStreamC.ReadGetNextType ()
  C#: MkTypeE bus.ReadGetNextType() C-API
get the type (MkTypeE) of the next Item in the MkBufferStreamC or "0" if not available
 
int csmkkernel.MkBufferStreamC.ReadGetNumItems ()
  C#: int bus.ReadGetNumItems() C-API
get the number of items left in the MkBufferStreamC
 
bool csmkkernel.MkBufferStreamC.ReadItemExists ()
  C#: bool bus.ReadItemExists() C-API
check if an item exists in the read-data-package
 
void csmkkernel.MkBufferStreamC.ReadL_END ()
  C#: bus.ReadL_END() C-API
END read a list-item-type from the MkBufferStreamC
 
void csmkkernel.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 csmkkernel.MkBufferStreamC.ReadUndo ()
  C#: bus.ReadUndo() C-API
undo the last MkBufferStreamC READ function call …
 
byte[] csmkkernel.MkBufferStreamC.ReadBIN ()
  C#: doc_mk_cs_BufferStreamReadBIN C-API
read a val_out from the MkBufferStreamC
 
bool csmkkernel.MkBufferStreamC.ReadBOL ()
  C#: doc_mk_cs_BufferStreamReadBOL C-API
read a val_out from the MkBufferStreamC
 
double csmkkernel.MkBufferStreamC.ReadDBL ()
  C#: doc_mk_cs_BufferStreamReadDBL C-API
read a val_out from the MkBufferStreamC
 
float csmkkernel.MkBufferStreamC.ReadFLT ()
  C#: doc_mk_cs_BufferStreamReadFLT C-API
read a val_out from the MkBufferStreamC
 
int csmkkernel.MkBufferStreamC.ReadI32 ()
  C#: doc_mk_cs_BufferStreamReadI32 C-API
read a val_out from the MkBufferStreamC
 
long csmkkernel.MkBufferStreamC.ReadI64 ()
  C#: doc_mk_cs_BufferStreamReadI64 C-API
read a val_out from the MkBufferStreamC
 
byte csmkkernel.MkBufferStreamC.ReadI8 ()
  C#: doc_mk_cs_BufferStreamReadI8 C-API
read a val_out from the MkBufferStreamC
 
long csmkkernel.MkBufferStreamC.ReadLONG ()
  C#: long bus.ReadLONG() C-API
read the long native object from the MkBufferStreamC
 
string csmkkernel.MkBufferStreamC.ReadSTR ()
  C#: doc_mk_cs_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

◆ ReadALL()

MkBufferListC csmkkernel.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 202 of file MkBufferStreamC.cs.

202 {
203 IntPtr val_inout_hdl = MkBufferListC.getOBJ_null_allow(val_inout);
204 MkErrorE errVal = Mk.MkBufferStreamReadALL(mkrt, hdl, ref val_inout_hdl);
205 MkErrorC.Check(hdl, errVal);
206 return MkBufferListC.MkBufferListC_ObjNew(val_inout_hdl);
207 }
csmkkernel.MkKernel Mk
MkErrorE
collection for the different error-codes …

◆ ReadBFL()

MkBufferListC csmkkernel.MkBufferStreamC.ReadBFL ( )
inline

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

Definition at line 212 of file MkBufferStreamC.cs.

212 {
213 IntPtr val_out;
214 MkErrorE errVal = Mk.MkBufferStreamReadBFL(mkrt, hdl, out val_out);
215 MkErrorC.Check(hdl, errVal);
216 return MkBufferListC.MkBufferListC_ObjNew(val_out);
217 }

◆ ReadBIN()

byte[] csmkkernel.MkBufferStreamC.ReadBIN ( )
inline

C#: doc_mk_cs_BufferStreamReadBIN C-API
read a val_out from the MkBufferStreamC

Definition at line 269 of file MkBufferStreamC.cs.

269 {
270 Mk.MkBinaryR val_out_ref;
271 MkErrorE errVal = Mk.MkBufferStreamReadBIN(mkrt, hdl, out val_out_ref);
272 if (errVal > MkErrorE.CONTINUE) ErrorCheck(errVal);
273 byte[] val_out = new byte[(int)val_out_ref.size];
274 Marshal.Copy(val_out_ref.data,val_out,0,(int)val_out_ref.size);
275 return val_out;
276 }
void ErrorCheck(MkErrorE err)
Definition MkErrorC.cs:139

◆ ReadBOL()

bool csmkkernel.MkBufferStreamC.ReadBOL ( )
inline

C#: doc_mk_cs_BufferStreamReadBOL C-API
read a val_out from the MkBufferStreamC

Definition at line 279 of file MkBufferStreamC.cs.

279 {
280 Byte val_out;
281 MkErrorE errVal = Mk.MkBufferStreamReadBOL(mkrt, hdl, out val_out);
282 MkErrorC.Check(hdl, errVal);
283 return val_out != 0;
284 }

◆ ReadBUF()

MkBufferC csmkkernel.MkBufferStreamC.ReadBUF ( )
inline

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

Definition at line 220 of file MkBufferStreamC.cs.

220 {
221 IntPtr val_out;
222 MkErrorE errVal = Mk.MkBufferStreamReadBUF(mkrt, hdl, out val_out);
223 MkErrorC.Check(hdl, errVal);
224 return MkBufferC.MkBufferC_ObjNew(val_out);
225 }

◆ ReadDBL()

double csmkkernel.MkBufferStreamC.ReadDBL ( )
inline

C#: doc_mk_cs_BufferStreamReadDBL C-API
read a val_out from the MkBufferStreamC

Definition at line 287 of file MkBufferStreamC.cs.

287 {
288 Double val_out;
289 MkErrorE errVal = Mk.MkBufferStreamReadDBL(mkrt, hdl, out val_out);
290 MkErrorC.Check(hdl, errVal);
291 return val_out;
292 }

◆ ReadFLT()

float csmkkernel.MkBufferStreamC.ReadFLT ( )
inline

C#: doc_mk_cs_BufferStreamReadFLT C-API
read a val_out from the MkBufferStreamC

Definition at line 295 of file MkBufferStreamC.cs.

295 {
296 Single val_out;
297 MkErrorE errVal = Mk.MkBufferStreamReadFLT(mkrt, hdl, out val_out);
298 MkErrorC.Check(hdl, errVal);
299 return val_out;
300 }

◆ ReadGetNextType()

MkTypeE csmkkernel.MkBufferStreamC.ReadGetNextType ( )
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 230 of file MkBufferStreamC.cs.

230 {
231 MkTypeE __retVal__L = Mk.MkBufferStreamReadGetNextType(mkrt, hdl);
232 return __retVal__L;
233 }
MkTypeE
basic data-types supported by Programming-Language-Micro-Kernel (PLMK) …

◆ ReadGetNumItems()

int csmkkernel.MkBufferStreamC.ReadGetNumItems ( )
inline

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

Definition at line 236 of file MkBufferStreamC.cs.

236 {
237 Int32 __retVal__L = Mk.MkBufferStreamReadGetNumItems(mkrt, hdl);
238 return __retVal__L;
239 }

◆ ReadI32()

int csmkkernel.MkBufferStreamC.ReadI32 ( )
inline

C#: doc_mk_cs_BufferStreamReadI32 C-API
read a val_out from the MkBufferStreamC

Definition at line 303 of file MkBufferStreamC.cs.

303 {
304 Int32 val_out;
305 MkErrorE errVal = Mk.MkBufferStreamReadI32(mkrt, hdl, out val_out);
306 MkErrorC.Check(hdl, errVal);
307 return val_out;
308 }

◆ ReadI64()

long csmkkernel.MkBufferStreamC.ReadI64 ( )
inline

C#: doc_mk_cs_BufferStreamReadI64 C-API
read a val_out from the MkBufferStreamC

Definition at line 311 of file MkBufferStreamC.cs.

311 {
312 Int64 val_out;
313 MkErrorE errVal = Mk.MkBufferStreamReadI64(mkrt, hdl, out val_out);
314 MkErrorC.Check(hdl, errVal);
315 return val_out;
316 }

◆ ReadI8()

byte csmkkernel.MkBufferStreamC.ReadI8 ( )
inline

C#: doc_mk_cs_BufferStreamReadI8 C-API
read a val_out from the MkBufferStreamC

Definition at line 319 of file MkBufferStreamC.cs.

319 {
320 Byte val_out;
321 MkErrorE errVal = Mk.MkBufferStreamReadI8(mkrt, hdl, out val_out);
322 MkErrorC.Check(hdl, errVal);
323 return (byte)val_out;
324 }

◆ ReadItemExists()

bool csmkkernel.MkBufferStreamC.ReadItemExists ( )
inline

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

Definition at line 242 of file MkBufferStreamC.cs.

242 {
243 bool __retVal__L = Mk.MkBufferStreamReadItemExists(mkrt, hdl);
244 return __retVal__L;
245 }

◆ ReadL_END()

void csmkkernel.MkBufferStreamC.ReadL_END ( )
inline

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

Definition at line 248 of file MkBufferStreamC.cs.

248 {
249 MkErrorE errVal = Mk.MkBufferStreamReadL_END(mkrt, hdl);
250 MkErrorC.Check(hdl, errVal);
251 }

◆ ReadL_START()

void csmkkernel.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 254 of file MkBufferStreamC.cs.

254 {
255 IntPtr buf_hdl = MkBufferC.getOBJ_null_allow(buf);
256 MkErrorE errVal = Mk.MkBufferStreamReadL_START(mkrt, hdl, buf_hdl);
257 MkErrorC.Check(hdl, errVal);
258 }

◆ ReadLONG()

long csmkkernel.MkBufferStreamC.ReadLONG ( )
inline

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

Definition at line 327 of file MkBufferStreamC.cs.

327 {
328 long val_out;
329 MkErrorE errVal = Mk.MkBufferStreamReadLONG(mkrt, hdl, out val_out);
330 MkErrorC.Check(hdl, errVal);
331 return val_out;
332 }

◆ ReadSTR()

string csmkkernel.MkBufferStreamC.ReadSTR ( )
inline

C#: doc_mk_cs_BufferStreamReadSTR C-API
read a val_out from the MkBufferStreamC

Definition at line 335 of file MkBufferStreamC.cs.

335 {
336 IntPtr val_out;
337 MkErrorE errVal = Mk.MkBufferStreamReadSTR(mkrt, hdl, out val_out);
338 MkErrorC.Check(hdl, errVal);
339 return Marshal.PtrToStringAnsi(val_out);
340 }

◆ ReadUndo()

void csmkkernel.MkBufferStreamC.ReadUndo ( )
inline

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

Definition at line 261 of file MkBufferStreamC.cs.

261 {
262 MkErrorE errVal = Mk.MkBufferStreamReadUndo(mkrt, hdl);
263 MkErrorC.Check(hdl, errVal);
264 }