theKernel 10.0
|
MkBufferC - the abstract class known as buf or buffer is used to create and manage dynamic, generic, mixed typed data. … More...
Public Member Functions | |
native MkBufferC | AppendC (String val) |
Java: → C-API append a single string to a MkBufferC object … | |
native MkBufferC | AppendStringR (String val) |
Java: → C-API append a single string to a MkBufferC object … | |
native int | Pop (String val) |
Java: → C-API delete str from the MkBufferC … | |
native int | Push (String val) |
Java: → C-API add str to the MkBufferC … | |
native MkBufferC | Next () |
Java: → C-API get next instance from linked-list of MkBufferS type | |
native MkBufferC | Prev () |
Java: → C-API get previous instance from linked-list of MkBufferS type | |
native MkBufferListC | GetBFL (MkBufferListC val_inout) |
Java: → C-API function to read an MkBufferListC from an MkBufferC object … | |
MkBufferListC | GetBFL () |
Java: → C-API function to read an MkBufferListC from an MkBufferC object … | |
native MkBufferC | GetBUF () |
Java: → C-API get a val_out from a MkBufferC … | |
native byte[] | GetBIN () |
Java: doc_mk_jv_BufferGetBIN → C-API get a val_out from a MkBufferC … | |
native boolean | GetBOL () |
Java: doc_mk_jv_BufferGetBOL → C-API get a val_out from a MkBufferC … | |
native double | GetDBL () |
Java: doc_mk_jv_BufferGetDBL → C-API get a val_out from a MkBufferC … | |
native float | GetFLT () |
Java: doc_mk_jv_BufferGetFLT → C-API get a val_out from a MkBufferC … | |
native short | GetI16 () |
Java: doc_mk_jv_BufferGetI16 → C-API get a val_out from a MkBufferC … | |
native int | GetI32 () |
Java: doc_mk_jv_BufferGetI32 → C-API get a val_out from a MkBufferC … | |
native long | GetI64 () |
Java: doc_mk_jv_BufferGetI64 → C-API get a val_out from a MkBufferC … | |
native byte | GetI8 () |
Java: doc_mk_jv_BufferGetI8 → C-API get a val_out from a MkBufferC … | |
native String | GetSTR () |
Java: doc_mk_jv_BufferGetSTR → C-API get a val_out from a MkBufferC … | |
native String | GetStringR () |
Java: → C-API get a val_out from a MkBufferC … | |
native char | GetType1 () |
Java: → C-API return the type from a MkBufferC as single character value … | |
native MkTypeE | GetType2 () |
Java: → C-API return the MkTypeE from a MkBufferC … | |
native String | GetType3 () |
Java: → C-API return the type from a MkBufferC as single character string … | |
native boolean | IsLocal () |
Java: → C-API Check if the MkBufferC is local (temporary), not local mean global … | |
native void | LogS (String varname, MkObjectC fmtobj, String callfunc) |
Java: → C-API log the short MkBufferC object data to the MkLogFileC (default: stderr) … | |
void | LogS () |
Java: → C-API log the short MkBufferC object data to the MkLogFileC (default: stderr) … | |
void | LogS (String varname) |
Java: → C-API log the short MkBufferC object data to the MkLogFileC (default: stderr) … | |
void | LogS (String varname, MkObjectC fmtobj) |
Java: → C-API log the short MkBufferC object data to the MkLogFileC (default: stderr) … | |
void | Log () |
Java: → C-API log the MkBufferC … | |
void | Log (MkObjectC fmtobj) |
Java: → C-API log the MkBufferC … | |
void | Log (MkObjectC fmtobj, int debug) |
Java: → C-API log the MkBufferC … | |
void | Log (MkObjectC fmtobj, int debug, String callfunc) |
Java: → C-API log the MkBufferC … | |
native MkBufferC | Copy (MkBufferC srce) |
Java: → C-API copy the MkBufferC from srce to dest … | |
native MkBufferC | Reset () |
Java: → C-API reset a MkBufferC to the length zero … | |
native MkBufferC | SizeAdd (int size) |
Java: → C-API add size storage to the buf … | |
native MkBufferC | SizeNew (int size) |
Java: → C-API alloc min size storage to the buf … | |
native MkBufferC | Temp () |
Java: → C-API create a temporary copy of the MkBufferC buf … | |
native void | CastTo (MkTypeE typ) |
Java: → C-API change the type of an MkBufferC to type … | |
native int | Cmp (MkBufferC buf2) |
Java: → C-API compare TWO MkBufferC objects like strcmp do it for strings … | |
native void | ResetFull () |
Java: → C-API reset a MkBufferC to the length zero and free allocated storage… | |
native MkBufferC | SetBIN (byte[] val) |
Java: doc_mk_jv_BufferSetBIN → C-API Set the MkBufferC to the val … | |
native MkBufferC | SetBOL (boolean val) |
Java: doc_mk_jv_BufferSetBOL → C-API Set the MkBufferC to the val … | |
native MkBufferC | SetBUF (MkBufferC val) |
Java: → C-API Set the MkBufferC to the val … | |
native MkBufferC | SetBinaryR (byte[] val) |
Java: → C-API Set the MkBufferC to the val … | |
native MkBufferC | SetDBL (double val) |
Java: doc_mk_jv_BufferSetDBL → C-API Set the MkBufferC to the val … | |
native MkBufferC | SetFLT (float val) |
Java: doc_mk_jv_BufferSetFLT → C-API Set the MkBufferC to the val … | |
native MkBufferC | SetI16 (short val) |
Java: doc_mk_jv_BufferSetI16 → C-API Set the MkBufferC to the val … | |
native MkBufferC | SetI32 (int val) |
Java: doc_mk_jv_BufferSetI32 → C-API Set the MkBufferC to the val … | |
native MkBufferC | SetI64 (long val) |
Java: doc_mk_jv_BufferSetI64 → C-API Set the MkBufferC to the val … | |
native MkBufferC | SetI8 (byte val) |
Java: doc_mk_jv_BufferSetI8 → C-API Set the MkBufferC to the val … | |
native MkBufferC | SetSTR (String val) |
Java: doc_mk_jv_BufferSetSTR → C-API Set the MkBufferC to the val … | |
native MkBufferC | SetStringR (String val) |
Java: → C-API Set the MkBufferC to the val … | |
native MkBufferC | Merge () |
Java: → C-API Merge-Constructor - create a new MkBufferC as a merge from an existing object … | |
native MkBufferC | Dup () |
Java: → C-API Dup-Constructor - create a new MkBufferC instance as copy from an existing MkBufferC instance | |
MkBufferC (int size) | |
Java: → C-API Constructor - create a new MkBufferC with minimum size of internal storage … | |
MkBufferC () | |
Java: → C-API Constructor - create a new MkBufferC with minimum size of internal storage … | |
Object | ToObject () |
![]() | |
void | close () |
String | toString () |
native void | HandleDelete () |
Java: → C-API Handle-Delete-Slot - delete a netObj from handle-storage … | |
native boolean | HandleExists () |
Java: → C-API check if obj has already a handle defined… | |
native int | HandleGet () |
Java: → C-API Handle-Get-Slot - returns a export-hdl to the MkObjectC useable for external storage | |
native int | HandleGetOfType () |
Java: → C-API Export-Slot - returns typeHdl of the obj . | |
native int | HandleGetOr0 () |
Java: → C-API return export-hdl or 0 in not created… | |
native void | DbgDump (String message, String callfunc) |
Java: → C-API debug: Dump a instance to stderr with LNG and MQ internal data… | |
void | DbgDump () |
Java: → C-API debug: Dump a instance to stderr with LNG and MQ internal data… | |
void | DbgDump (String message) |
Java: → C-API debug: Dump a instance to stderr with LNG and MQ internal data… | |
native void | DbgL (String message, int debug, String callfunc, int lvl) |
Java: → C-API debug: write a instance-marker to the MkLogFileC (default: stderr) using the fmtobj as prefix … | |
void | DbgL (String message) |
Java: → C-API debug: write a instance-marker to the MkLogFileC (default: stderr) using the fmtobj as prefix … | |
void | DbgL (String message, int debug) |
Java: → C-API debug: write a instance-marker to the MkLogFileC (default: stderr) using the fmtobj as prefix … | |
void | DbgL (String message, int debug, String callfunc) |
Java: → C-API debug: write a instance-marker to the MkLogFileC (default: stderr) using the fmtobj as prefix … | |
native void | DbgLogC (String callfunc) |
Java: → C-API debug: write a short-obj-summary to MkLogFileC (default: stderr) … | |
void | DbgLogC () |
Java: → C-API debug: write a short-obj-summary to MkLogFileC (default: stderr) … | |
native void | DbgO (String callfunc) |
Java: → C-API debug: write the object-details to MkLogFileC (default: stderr) … | |
void | DbgO () |
Java: → C-API debug: write the object-details to MkLogFileC (default: stderr) … | |
native void | DbgSTACK (int skip, int num, String callfunc) |
Java: → C-API debug: write the stack-trace to MkLogFileC (default: stderr) … | |
void | DbgSTACK () |
Java: → C-API debug: write the stack-trace to MkLogFileC (default: stderr) … | |
void | DbgSTACK (int skip) |
Java: → C-API debug: write the stack-trace to MkLogFileC (default: stderr) … | |
void | DbgSTACK (int skip, int num) |
Java: → C-API debug: write the stack-trace to MkLogFileC (default: stderr) … | |
native void | LogC (String message, int debug, String callfunc) |
Java: → C-API write a logging-message to MkLogFileC (default: stderr) using the internal format … | |
void | LogC (String message) |
Java: → C-API write a logging-message to MkLogFileC (default: stderr) using the internal format … | |
void | LogC (String message, int debug) |
Java: → C-API write a logging-message to MkLogFileC (default: stderr) using the internal format … | |
native void | LogHEX (String callfunc, byte[] data) |
Java: → C-API log binaray data as HEX into the MkLogFileC (default: stderr) … | |
native void | Log (MkObjectC fmtobj, int debug, String callfunc, int lvl) |
Java: → C-API Log-Slot - log a summary of an object to the MkLogFileC (default: stderr) target … | |
native void | LogLong (MkObjectC fmtobj, int debug, String callfunc, int lvl) |
Java: → C-API log the MkObjectS verbose into the MkLogFileC (default: stderr) … | |
void | LogLong () |
Java: → C-API log the MkObjectS verbose into the MkLogFileC (default: stderr) … | |
void | LogLong (MkObjectC fmtobj) |
Java: → C-API log the MkObjectS verbose into the MkLogFileC (default: stderr) … | |
void | LogLong (MkObjectC fmtobj, int debug) |
Java: → C-API log the MkObjectS verbose into the MkLogFileC (default: stderr) … | |
void | LogLong (MkObjectC fmtobj, int debug, String callfunc) |
Java: → C-API log the MkObjectS verbose into the MkLogFileC (default: stderr) … | |
native void | LogShort (MkObjectC fmtobj, int debug, String callfunc, int lvl) |
Java: → C-API log the MkObjectS into the MkLogFileC (default: stderr) … | |
void | LogShort () |
Java: → C-API log the MkObjectS into the MkLogFileC (default: stderr) … | |
void | LogShort (MkObjectC fmtobj) |
Java: → C-API log the MkObjectS into the MkLogFileC (default: stderr) … | |
void | LogShort (MkObjectC fmtobj, int debug) |
Java: → C-API log the MkObjectS into the MkLogFileC (default: stderr) … | |
void | LogShort (MkObjectC fmtobj, int debug, String callfunc) |
Java: → C-API log the MkObjectS into the MkLogFileC (default: stderr) … | |
native void | LogType (MkObjectC fmtobj, int debug, String callfunc, int lvl) |
Java: → C-API log the tyoe of the MkObjectS into the MkLogFileC (default: stderr) … | |
void | LogType () |
Java: → C-API log the tyoe of the MkObjectS into the MkLogFileC (default: stderr) … | |
void | LogType (MkObjectC fmtobj) |
Java: → C-API log the tyoe of the MkObjectS into the MkLogFileC (default: stderr) … | |
void | LogType (MkObjectC fmtobj, int debug) |
Java: → C-API log the tyoe of the MkObjectS into the MkLogFileC (default: stderr) … | |
void | LogType (MkObjectC fmtobj, int debug, String callfunc) |
Java: → C-API log the tyoe of the MkObjectS into the MkLogFileC (default: stderr) … | |
native MkErrorC | ErrorCatch (Throwable exception, String callfunc) |
Java: → C-API convert a programming-language-error into an jvmkkernel error … | |
MkErrorC | ErrorCatch () |
Java: → C-API convert a programming-language-error into an jvmkkernel error … | |
MkErrorC | ErrorCatch (Throwable exception) |
Java: → C-API convert a programming-language-error into an jvmkkernel error … | |
native MkErrorC | ToError () |
Java: → C-API Error-Slot - return an error-object pre initialized with obj data. | |
native boolean | IsNull () |
Java: → C-API ckeck if the object is null | |
native String | ToName () |
Java: → C-API Info-Slot - returns brief information about the obj as a string | |
native String | ToNameOfClass () |
Java: → C-API Class-Slot - returns the Java-Class-Name of the obj as string | |
native String | ToNameOfType () |
Java: → C-API Type-Slot - returns the LibMkKernel-Type-Name of the obj as a string | |
native String | ToString () |
Java: → C-API String-Slot - returns the string representation of the inst … | |
native int | RefGet () |
MkRefGet | |
native void | SysKill (int pid, int signal) |
MkSysKill | |
native int | SysGetPid () |
MkSysGetPid | |
native void | Dispose () |
Java: → C-API Dispose-Slot - untie the connection between the Native-Java-Instance and the jvmkkernel-Instance. | |
native void | Delete () |
Java: → C-API Delete-Slot - delete an instance. | |
void | printP () |
void | L0 () |
void | L1 () |
void | L2 () |
void | L3 () |
void | L4 () |
void | L5 () |
void | L6 () |
void | L7 () |
void | L8 () |
void | L9 () |
void | LA () |
void | LB () |
void | LE () |
void | printL (String name, Object val) |
Static Public Member Functions | |
static native MkBufferC | HandleResolve (int netHdl) |
Java: → C-API Handle-Resolve-Slot - return a MkBufferC from netHdl or null if invalid… | |
static native MkBufferC | Instances () |
Java: → C-API get head-instance from linked-list of MkBufferS type … | |
static native MkBufferC | GetNull () |
Java: → C-API Null-Slot - return a MkBufferC typed NULL instance … | |
static native MkBufferC | Create (int size) |
Java: → C-API Constructor - create a new MkBufferC with minimum size of internal storage … | |
static native MkBufferC | Create1024 (int size) |
Java: → C-API call the BufferCreate with default type MkBuffer1024S (1024 byte) … | |
static MkBufferC | Create1024 () |
Java: → C-API call the BufferCreate with default type MkBuffer1024S (1024 byte) … | |
static native MkBufferC | Create256 (int size) |
Java: → C-API call the BufferCreate with default type MkBuffer256S (256 byte) … | |
static MkBufferC | Create256 () |
Java: → C-API call the BufferCreate with default type MkBuffer256S (256 byte) … | |
static native MkBufferC | Create64 (int size) |
Java: → C-API call the BufferCreate with default type MkBuffer64S (64 byte) … | |
static MkBufferC | Create64 () |
Java: → C-API call the BufferCreate with default type MkBuffer64S (64 byte) … | |
static native MkBufferC | CreateBIN (byte[] val) |
Java: doc_mk_jv_BufferCreateBIN → C-API Constructor - create a new MkBufferC with an PRIMITIVE TYPE … | |
static native MkBufferC | CreateBOL (boolean val) |
Java: doc_mk_jv_BufferCreateBOL → C-API Constructor - create a new MkBufferC with an PRIMITIVE TYPE … | |
static native MkBufferC | CreateBUF (MkBufferC val) |
Java: → C-API Constructor - create a new MkBufferC with an PRIMITIVE TYPE … | |
static native MkBufferC | CreateDBL (double val) |
Java: doc_mk_jv_BufferCreateDBL → C-API Constructor - create a new MkBufferC with an PRIMITIVE TYPE … | |
static native MkBufferC | CreateFLT (float val) |
Java: doc_mk_jv_BufferCreateFLT → C-API Constructor - create a new MkBufferC with an PRIMITIVE TYPE … | |
static native MkBufferC | CreateI16 (short val) |
Java: doc_mk_jv_BufferCreateI16 → C-API Constructor - create a new MkBufferC with an PRIMITIVE TYPE … | |
static native MkBufferC | CreateI32 (int val) |
Java: doc_mk_jv_BufferCreateI32 → C-API Constructor - create a new MkBufferC with an PRIMITIVE TYPE … | |
static native MkBufferC | CreateI64 (long val) |
Java: doc_mk_jv_BufferCreateI64 → C-API Constructor - create a new MkBufferC with an PRIMITIVE TYPE … | |
static native MkBufferC | CreateI8 (byte val) |
Java: doc_mk_jv_BufferCreateI8 → C-API Constructor - create a new MkBufferC with an PRIMITIVE TYPE … | |
static native MkBufferC | CreateSTR (String val) |
Java: doc_mk_jv_BufferCreateSTR → C-API Constructor - create a new MkBufferC with an PRIMITIVE TYPE … | |
static MkBufferC | Create () |
Java: → C-API Constructor - create a new MkBufferC with minimum size of internal storage … | |
static native MkBufferC | CreateTLS (String tlsName, boolean resetB) |
Java: → C-API same as BufferCreate but require no cleanup | |
static MkBufferC | CreateTLS (String tlsName) |
Java: → C-API same as BufferCreate but require no cleanup | |
![]() | |
static native void | HandleDeleteByNetHdl (int netHdl) |
Java: → C-API Handle-Delete-Slot - delete a netHdl from handle-storage … | |
static native void | DbgM (String message, int debug, String callfunc, int lvl) |
Java: → C-API debug: write a static-marker to the MkLogFileC (default: stderr) … | |
static void | DbgM (String message) |
Java: → C-API debug: write a static-marker to the MkLogFileC (default: stderr) … | |
static void | DbgM (String message, int debug) |
Java: → C-API debug: write a static-marker to the MkLogFileC (default: stderr) … | |
static void | DbgM (String message, int debug, String callfunc) |
Java: → C-API debug: write a static-marker to the MkLogFileC (default: stderr) … | |
static native int | SysHashI32 (String key, int length) |
MkSysHashI32 | |
static int | SysHashI32 (String key) |
MkSysHashI32 | |
static native String | SysHashSTR (String key, int length) |
MkSysHashSTR | |
static String | SysHashSTR (String key) |
MkSysHashSTR | |
static native void | DeleteCallbackCleanup (String ident) |
Java: → C-API cleanup the DeleteCallback installed with MkObjectDeleteCallbackSetup … | |
static native void | DeleteCallbackSetup (String ident, MkObjectDeleteIF callback, String filter) |
Java: → C-API Create/Delete the instance-delete-callback … | |
static void | DeleteCallbackSetup (String ident) |
Java: → C-API Create/Delete the instance-delete-callback … | |
static void | DeleteCallbackSetup (String ident, MkObjectDeleteIF callback) |
Java: → C-API Create/Delete the instance-delete-callback … | |
static int | getPId () |
static long | getTId () |
static String | getCallerProc (int level) |
static String | getCallerProc () |
static String | getStackTrace (int level) |
static String | getStackTrace () |
static int | getCallerLine (int level) |
static int | getCallerLine () |
static String | getCallerFile (int level) |
static String | getCallerFile () |
static void | SF (String msg, String name, int framelvl) |
static void | SF (String msg) |
static void | SF (String msg, String name) |
static void | printP (long ptr, String name, int framelvl) |
static void | printO (byte byt, String name, int framelvl) |
static void | printBool (boolean bol, String name, int framelvl) |
static void | printObj (Object id, String caller, int framelvl) |
static void | printObj (Object id, String caller) |
static void | printObj (Object id) |
static void | printC (String id, String name, int framelvl) |
static void | printC (String id) |
static void | printTyp (MkObjectC id, String name, int framelvl) |
static void | printStack (String name, int framelvl) |
static void | M0 () |
static void | M1 () |
static void | M2 () |
static void | M3 () |
static void | M4 () |
static void | M5 () |
static void | M6 () |
static void | M7 () |
static void | M8 () |
static void | M9 () |
static void | MA () |
static void | MB () |
static void | MC () |
static void | MD () |
static void | ME () |
Additional Inherited Members | |
![]() | |
MkObjectC (long mng, boolean dummy) | |
This contructor is used internal to create an java-object for an already existing libmqmsgque-object. | |
void | Dispose (boolean disposing) |
![]() |
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.
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:
MkBufferSPtr->ils_data - MkBufferSPtr
.The ABSTRACT-CLASS MkBufferS is missing the ILS-storage, the FINAL-CLASSES are:
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(); } }
Definition at line 18 of file MkBufferC.java.
Object jvmkkernel.MkBufferC.ToObject | ( | ) |
Definition at line 422 of file MkBufferC.java.