theKernel 10.0
Loading...
Searching...
No Matches
MkBufferC_JV_API

MkBufferC - the abstract class known as buf or buffer is used to create and manage dynamic, generic, mixed typed data. … More...

+ Collaboration diagram for MkBufferC_JV_API:

Topics

 MkBufferC_Class_JV_API
 MkBufferC - define the class …
 
 MkBufferC_TOR_JV_API
 MkBufferC - various functions to create, initialize and destroy a MkBufferC
 
 MkBufferC_Get_JV_API
 MkBufferC - various functions to get buffer-data
 
 MkBufferC_Set_JV_API
 MkBufferC - various functions to set buffer-data
 
 MkBufferC_Info_JV_API
 MkBufferC - various functions to get information out of buffer-data
 
 MkBufferC_Access_JV_API
 MkBufferC - various functions to access buffer-data
 
 MkBufferC_Misc_JV_API
 MkBufferC - various functions to work on buffer-data
 

Classes

class  jvmkkernel.MkBufferC
 MkBufferC - the abstract class known as buf or buffer is used to create and manage dynamic, generic, mixed typed data. … More...
 

Detailed Description

MkBufferC - the abstract class known as buf or buffer is used to create and manage dynamic, generic, mixed typed data. …

The MkBufferC is used to store PRIMITIVE TYPE data. If jvmkkernel is working on data… jvmkkernel is working on an MkBufferC object or on a list of MkBufferC objects called MkBufferListC.

MkBufferC CLASS

The ABSTRACT-CLASS used to store a native-type-data-item defined by PRIMITIVE TYPE

C-Kernel-Details

The ABSTRACT-CLASS MkBufferS is used to store MkTypeE data in an MkBufferS::storage

A new MkBufferS is always preallocated with the predefined ILS-storage (MkBufferS::ils_data), but can switch to a MALLOC-storage if the storage requirements of the user exceed the predefined MkBufferS::ilsS::size.

‍A MkBufferS never run out of storage.

The basic goal of the ILS-storage technology is to minimize the usage of MALLOC, this mean that the MkBufferS::ilsS::size should be large enought to be sufficient for the user needs.

The following conditions must always be met for the ILS memory:

The ABSTRACT-CLASS MkBufferS is missing the ILS-storage, the FINAL-CLASSES are:

MkBuffer64C, MkBuffer256C and MkBuffer1024C

See also
MkBufferListC, MkBufferStreamC

MkBufferC CTOR / DTOR

command synonmym
[constructor,static] MkBufferC MkBufferC.Create(?int size = 0?) jvmkkernel.MkBufferC(wide size = 0)
[destructor] buf.Delete() buf.Dispose()

Example from server.java read a buffer-object and convert single-char-type-identifer to string.

class BUF2 implements MqServiceIF {
  public void Callback(MqContextC ctx) {
    ctx.SendSTART();

    for (int i=0; i<3; i++) {
      MkBufferC buf = ctx.ReadBUF();
      ctx.SendSTR(Character.toString(buf.GetType1()));
      ctx.SendBUF(buf);
    }

    ctx.SendRETURN();
  }
}
See also
BufferGetType1 BufferGetType2 BufferGetType3