theKernel 10.0
Loading...
Searching...
No Matches
jvmkkernel.MkBufferC Class Reference

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

+ Inheritance diagram for jvmkkernel.MkBufferC:
+ Collaboration diagram for jvmkkernel.MkBufferC:

Public Member Functions

native MkBufferC AppendC (String val)
  Java: MkBufferC buf.AppendC(String val) C-API
append a single string to a MkBufferC object …
 
native MkBufferC AppendStringR (String val)
  Java: MkBufferC buf.AppendStringR(String val) C-API
append a single string to a MkBufferC object …
 
native int Pop (String val)
  Java: int buf.Pop(String val) C-API
delete str from the MkBufferC
 
native int Push (String val)
  Java: int buf.Push(String val) C-API
add str to the MkBufferC
 
native MkBufferC Next ()
  Java: MkBufferC buf.Next() C-API
get next instance from linked-list of MkBufferS type
 
native MkBufferC Prev ()
  Java: MkBufferC buf.Prev() C-API
get previous instance from linked-list of MkBufferS type
 
native MkBufferListC GetBFL (MkBufferListC val_inout)
  Java: MkBufferListC buf.GetBFL(?MkBufferListC val_inout = null?) C-API
function to read an MkBufferListC from an MkBufferC object …
 
MkBufferListC GetBFL ()
  Java: MkBufferListC buf.GetBFL(?MkBufferListC val_inout = null?) C-API
function to read an MkBufferListC from an MkBufferC object …
 
native MkBufferC GetBUF ()
  Java: MkBufferC buf.GetBUF() 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: String buf.GetStringR() C-API
get a val_out from a MkBufferC
 
native char GetType1 ()
  Java: char buf.GetType1() C-API
return the type from a MkBufferC as single character value …
 
native MkTypeE GetType2 ()
  Java: MkTypeE buf.GetType2() C-API
return the MkTypeE from a MkBufferC
 
native String GetType3 ()
  Java: String buf.GetType3() C-API
return the type from a MkBufferC as single character string …
 
native boolean IsLocal ()
  Java: boolean buf.IsLocal() C-API
Check if the MkBufferC is local (temporary), not local mean global
 
native void LogS (String varname, MkObjectC fmtobj, String callfunc)
  Java: buf.LogS(?String varname = "buf"?, ?MkObjectC fmtobj = null?, ?String callfunc = null?) C-API
log the short MkBufferC object data to the MkLogFileC (default: stderr) …
 
void LogS ()
  Java: buf.LogS(?String varname = "buf"?, ?MkObjectC fmtobj = null?, ?String callfunc = null?) C-API
log the short MkBufferC object data to the MkLogFileC (default: stderr) …
 
void LogS (String varname)
  Java: buf.LogS(?String varname = "buf"?, ?MkObjectC fmtobj = null?, ?String callfunc = null?) C-API
log the short MkBufferC object data to the MkLogFileC (default: stderr) …
 
void LogS (String varname, MkObjectC fmtobj)
  Java: buf.LogS(?String varname = "buf"?, ?MkObjectC fmtobj = null?, ?String callfunc = null?) C-API
log the short MkBufferC object data to the MkLogFileC (default: stderr) …
 
void Log ()
  Java: buf.Log(?MkObjectC fmtobj = null?, ?int debug = 0?, ?String callfunc = null?, ?int lvl = 0?) C-API
log the MkBufferC
 
void Log (MkObjectC fmtobj)
  Java: buf.Log(?MkObjectC fmtobj = null?, ?int debug = 0?, ?String callfunc = null?, ?int lvl = 0?) C-API
log the MkBufferC
 
void Log (MkObjectC fmtobj, int debug)
  Java: buf.Log(?MkObjectC fmtobj = null?, ?int debug = 0?, ?String callfunc = null?, ?int lvl = 0?) C-API
log the MkBufferC
 
void Log (MkObjectC fmtobj, int debug, String callfunc)
  Java: buf.Log(?MkObjectC fmtobj = null?, ?int debug = 0?, ?String callfunc = null?, ?int lvl = 0?) C-API
log the MkBufferC
 
native MkBufferC Copy (MkBufferC srce)
  Java: MkBufferC buf.Copy(MkBufferC srce) C-API
copy the MkBufferC from srce to dest
 
native MkBufferC Reset ()
  Java: MkBufferC buf.Reset() C-API
reset a MkBufferC to the length zero …
 
native MkBufferC SizeAdd (int size)
  Java: MkBufferC buf.SizeAdd(int size) C-API
add size storage to the buf
 
native MkBufferC SizeNew (int size)
  Java: MkBufferC buf.SizeNew(int size) C-API
alloc min size storage to the buf
 
native MkBufferC Temp ()
  Java: MkBufferC buf.Temp() C-API
create a temporary copy of the MkBufferC buf …
 
native void CastTo (MkTypeE typ)
  Java: buf.CastTo(MkTypeE typ) C-API
change the type of an MkBufferC to type
 
native int Cmp (MkBufferC buf2)
  Java: int buf1.Cmp(MkBufferC buf2) C-API
compare TWO MkBufferC objects like strcmp do it for strings …
 
native void ResetFull ()
  Java: buf.ResetFull() 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: MkBufferC buf.SetBUF(MkBufferC val) C-API
Set the MkBufferC to the val
 
native MkBufferC SetBinaryR (byte[] val)
  Java: MkBufferC buf.SetBinaryR(byte[] val) 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: MkBufferC buf.SetStringR(String val) C-API
Set the MkBufferC to the val
 
native MkBufferC Merge ()
  Java: [constructor] MkBufferC buf.Merge() C-API
Merge-Constructor - create a new MkBufferC as a merge from an existing object …
 
native MkBufferC Dup ()
  Java: [constructor] MkBufferC buf.Dup() C-API
Dup-Constructor - create a new MkBufferC instance as copy from an existing MkBufferC instance
 
 MkBufferC (int size)
  Java: [constructor,static] MkBufferC MkBufferC.Create(?int size = 0?) C-API
Constructor - create a new MkBufferC with minimum size of internal storage …
 
 MkBufferC ()
  Java: [constructor,static] MkBufferC MkBufferC.Create(?int size = 0?) C-API
Constructor - create a new MkBufferC with minimum size of internal storage …
 
Object ToObject ()
 
- Public Member Functions inherited from jvmkkernel.MkObjectC
void close ()
 
String toString ()
 
native void HandleDelete ()
  Java: netObj.HandleDelete() C-API
Handle-Delete-Slot - delete a netObj from handle-storage …
 
native boolean HandleExists ()
  Java: boolean obj.HandleExists() C-API
check if obj has already a handle defined…
 
native int HandleGet ()
  Java: int obj.HandleGet() C-API
Handle-Get-Slot - returns a export-hdl to the MkObjectC useable for external storage
 
native int HandleGetOfType ()
  Java: int obj.HandleGetOfType() C-API
Export-Slot - returns typeHdl of the obj .
 
native int HandleGetOr0 ()
  Java: int obj.HandleGetOr0() C-API
return export-hdl or 0 in not created…
 
native void DbgDump (String message, String callfunc)
  Java: obj.DbgDump(?String message = "var"?, ?String callfunc = null?) C-API
debug: Dump a instance to stderr with LNG and MQ internal data…
 
void DbgDump ()
  Java: obj.DbgDump(?String message = "var"?, ?String callfunc = null?) C-API
debug: Dump a instance to stderr with LNG and MQ internal data…
 
void DbgDump (String message)
  Java: obj.DbgDump(?String message = "var"?, ?String callfunc = null?) 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: fmtobj.DbgL(String message, ?int debug = 0?, ?String callfunc = null?, ?int lvl = 0?) C-API
debug: write a instance-marker to the MkLogFileC (default: stderr) using the fmtobj as prefix …
 
void DbgL (String message)
  Java: fmtobj.DbgL(String message, ?int debug = 0?, ?String callfunc = null?, ?int lvl = 0?) C-API
debug: write a instance-marker to the MkLogFileC (default: stderr) using the fmtobj as prefix …
 
void DbgL (String message, int debug)
  Java: fmtobj.DbgL(String message, ?int debug = 0?, ?String callfunc = null?, ?int lvl = 0?) 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: fmtobj.DbgL(String message, ?int debug = 0?, ?String callfunc = null?, ?int lvl = 0?) C-API
debug: write a instance-marker to the MkLogFileC (default: stderr) using the fmtobj as prefix …
 
native void DbgLogC (String callfunc)
  Java: obj.DbgLogC(?String callfunc = null?) C-API
debug: write a short-obj-summary to MkLogFileC (default: stderr) …
 
void DbgLogC ()
  Java: obj.DbgLogC(?String callfunc = null?) C-API
debug: write a short-obj-summary to MkLogFileC (default: stderr) …
 
native void DbgO (String callfunc)
  Java: obj.DbgO(?String callfunc = null?) C-API
debug: write the object-details to MkLogFileC (default: stderr) …
 
void DbgO ()
  Java: obj.DbgO(?String callfunc = null?) C-API
debug: write the object-details to MkLogFileC (default: stderr) …
 
native void DbgSTACK (int skip, int num, String callfunc)
  Java: fmtobj.DbgSTACK(?int skip = 0?, ?int num = -1?, ?String callfunc = null?) C-API
debug: write the stack-trace to MkLogFileC (default: stderr) …
 
void DbgSTACK ()
  Java: fmtobj.DbgSTACK(?int skip = 0?, ?int num = -1?, ?String callfunc = null?) C-API
debug: write the stack-trace to MkLogFileC (default: stderr) …
 
void DbgSTACK (int skip)
  Java: fmtobj.DbgSTACK(?int skip = 0?, ?int num = -1?, ?String callfunc = null?) C-API
debug: write the stack-trace to MkLogFileC (default: stderr) …
 
void DbgSTACK (int skip, int num)
  Java: fmtobj.DbgSTACK(?int skip = 0?, ?int num = -1?, ?String callfunc = null?) C-API
debug: write the stack-trace to MkLogFileC (default: stderr) …
 
native void LogC (String message, int debug, String callfunc)
  Java: fmtobj.LogC(String message, ?int debug = 0?, ?String callfunc = null?) C-API
write a logging-message to MkLogFileC (default: stderr) using the internal format …
 
void LogC (String message)
  Java: fmtobj.LogC(String message, ?int debug = 0?, ?String callfunc = null?) C-API
write a logging-message to MkLogFileC (default: stderr) using the internal format …
 
void LogC (String message, int debug)
  Java: fmtobj.LogC(String message, ?int debug = 0?, ?String callfunc = null?) C-API
write a logging-message to MkLogFileC (default: stderr) using the internal format …
 
native void LogHEX (String callfunc, byte[] data)
  Java: fmtobj.LogHEX(?String callfunc = null?, byte[] data) C-API
log binaray data as HEX into the MkLogFileC (default: stderr) …
 
native void Log (MkObjectC fmtobj, int debug, String callfunc, int lvl)
  Java: obj.Log(?MkObjectC fmtobj = null?, ?int debug = 0?, ?String callfunc = null?, ?int lvl = 0?) 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: obj.LogLong(?MkObjectC fmtobj = null?, ?int debug = 0?, ?String callfunc = null?, ?int lvl = 0?) C-API
log the MkObjectS verbose into the MkLogFileC (default: stderr) …
 
void LogLong ()
  Java: obj.LogLong(?MkObjectC fmtobj = null?, ?int debug = 0?, ?String callfunc = null?, ?int lvl = 0?) C-API
log the MkObjectS verbose into the MkLogFileC (default: stderr) …
 
void LogLong (MkObjectC fmtobj)
  Java: obj.LogLong(?MkObjectC fmtobj = null?, ?int debug = 0?, ?String callfunc = null?, ?int lvl = 0?) C-API
log the MkObjectS verbose into the MkLogFileC (default: stderr) …
 
void LogLong (MkObjectC fmtobj, int debug)
  Java: obj.LogLong(?MkObjectC fmtobj = null?, ?int debug = 0?, ?String callfunc = null?, ?int lvl = 0?) C-API
log the MkObjectS verbose into the MkLogFileC (default: stderr) …
 
void LogLong (MkObjectC fmtobj, int debug, String callfunc)
  Java: obj.LogLong(?MkObjectC fmtobj = null?, ?int debug = 0?, ?String callfunc = null?, ?int lvl = 0?) C-API
log the MkObjectS verbose into the MkLogFileC (default: stderr) …
 
native void LogShort (MkObjectC fmtobj, int debug, String callfunc, int lvl)
  Java: obj.LogShort(?MkObjectC fmtobj = null?, ?int debug = 0?, ?String callfunc = null?, ?int lvl = 0?) C-API
log the MkObjectS into the MkLogFileC (default: stderr) …
 
void LogShort ()
  Java: obj.LogShort(?MkObjectC fmtobj = null?, ?int debug = 0?, ?String callfunc = null?, ?int lvl = 0?) C-API
log the MkObjectS into the MkLogFileC (default: stderr) …
 
void LogShort (MkObjectC fmtobj)
  Java: obj.LogShort(?MkObjectC fmtobj = null?, ?int debug = 0?, ?String callfunc = null?, ?int lvl = 0?) C-API
log the MkObjectS into the MkLogFileC (default: stderr) …
 
void LogShort (MkObjectC fmtobj, int debug)
  Java: obj.LogShort(?MkObjectC fmtobj = null?, ?int debug = 0?, ?String callfunc = null?, ?int lvl = 0?) C-API
log the MkObjectS into the MkLogFileC (default: stderr) …
 
void LogShort (MkObjectC fmtobj, int debug, String callfunc)
  Java: obj.LogShort(?MkObjectC fmtobj = null?, ?int debug = 0?, ?String callfunc = null?, ?int lvl = 0?) C-API
log the MkObjectS into the MkLogFileC (default: stderr) …
 
native void LogType (MkObjectC fmtobj, int debug, String callfunc, int lvl)
  Java: obj.LogType(?MkObjectC fmtobj = null?, ?int debug = 0?, ?String callfunc = null?, ?int lvl = 0?) C-API
log the tyoe of the MkObjectS into the MkLogFileC (default: stderr) …
 
void LogType ()
  Java: obj.LogType(?MkObjectC fmtobj = null?, ?int debug = 0?, ?String callfunc = null?, ?int lvl = 0?) C-API
log the tyoe of the MkObjectS into the MkLogFileC (default: stderr) …
 
void LogType (MkObjectC fmtobj)
  Java: obj.LogType(?MkObjectC fmtobj = null?, ?int debug = 0?, ?String callfunc = null?, ?int lvl = 0?) C-API
log the tyoe of the MkObjectS into the MkLogFileC (default: stderr) …
 
void LogType (MkObjectC fmtobj, int debug)
  Java: obj.LogType(?MkObjectC fmtobj = null?, ?int debug = 0?, ?String callfunc = null?, ?int lvl = 0?) C-API
log the tyoe of the MkObjectS into the MkLogFileC (default: stderr) …
 
void LogType (MkObjectC fmtobj, int debug, String callfunc)
  Java: obj.LogType(?MkObjectC fmtobj = null?, ?int debug = 0?, ?String callfunc = null?, ?int lvl = 0?) C-API
log the tyoe of the MkObjectS into the MkLogFileC (default: stderr) …
 
native MkErrorC ErrorCatch (Throwable exception, String callfunc)
  Java: MkErrorC obj.ErrorCatch(?Throwable exception = null?, ?String callfunc = null?) C-API
convert a programming-language-error into an jvmkkernel error …
 
MkErrorC ErrorCatch ()
  Java: MkErrorC obj.ErrorCatch(?Throwable exception = null?, ?String callfunc = null?) C-API
convert a programming-language-error into an jvmkkernel error …
 
MkErrorC ErrorCatch (Throwable exception)
  Java: MkErrorC obj.ErrorCatch(?Throwable exception = null?, ?String callfunc = null?) C-API
convert a programming-language-error into an jvmkkernel error …
 
native MkErrorC ToError ()
  Java: MkErrorC obj.ToError() C-API
Error-Slot - return an error-object pre initialized with obj data.
 
native boolean IsNull ()
  Java: boolean obj.IsNull() C-API
ckeck if the object is null
 
native String ToName ()
  Java: String obj.ToName() C-API
Info-Slot - returns brief information about the obj as a string
 
native String ToNameOfClass ()
  Java: String obj.ToNameOfClass() C-API
Class-Slot - returns the Java-Class-Name of the obj as string
 
native String ToNameOfType ()
  Java: String obj.ToNameOfType() C-API
Type-Slot - returns the LibMkKernel-Type-Name of the obj as a string
 
native String ToString ()
  Java: String inst.ToString() 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: [destructor] obj.Dispose() C-API
Dispose-Slot - untie the connection between the Native-Java-Instance and the jvmkkernel-Instance.
 
native void Delete ()
  Java: [destructor] obj.Delete() 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: [static] MkBufferC MkBufferC.HandleResolve(int netHdl) C-API
Handle-Resolve-Slot - return a MkBufferC from netHdl or null if invalid…
 
static native MkBufferC Instances ()
  Java: [static] MkBufferC MkBufferC.Instances() C-API
get head-instance from linked-list of MkBufferS type …
 
static native MkBufferC GetNull ()
  Java: [static] MkBufferC MkBufferC.GetNull() C-API
Null-Slot - return a MkBufferC typed NULL instance …
 
static native MkBufferC Create (int size)
  Java: [constructor,static] MkBufferC MkBufferC.Create(?int size = 0?) C-API
Constructor - create a new MkBufferC with minimum size of internal storage …
 
static native MkBufferC Create1024 (int size)
  Java: [constructor,static] MkBufferC MkBufferC.Create1024(?int size = 0?) C-API
call the BufferCreate with default type MkBuffer1024S (1024 byte) …
 
static MkBufferC Create1024 ()
  Java: [constructor,static] MkBufferC MkBufferC.Create1024(?int size = 0?) C-API
call the BufferCreate with default type MkBuffer1024S (1024 byte) …
 
static native MkBufferC Create256 (int size)
  Java: [constructor,static] MkBufferC MkBufferC.Create256(?int size = 0?) C-API
call the BufferCreate with default type MkBuffer256S (256 byte) …
 
static MkBufferC Create256 ()
  Java: [constructor,static] MkBufferC MkBufferC.Create256(?int size = 0?) C-API
call the BufferCreate with default type MkBuffer256S (256 byte) …
 
static native MkBufferC Create64 (int size)
  Java: [constructor,static] MkBufferC MkBufferC.Create64(?int size = 0?) C-API
call the BufferCreate with default type MkBuffer64S (64 byte) …
 
static MkBufferC Create64 ()
  Java: [constructor,static] MkBufferC MkBufferC.Create64(?int size = 0?) 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: [constructor,static] MkBufferC MkBufferC.CreateBUF(MkBufferC val) 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: [constructor,static] MkBufferC MkBufferC.Create(?int size = 0?) C-API
Constructor - create a new MkBufferC with minimum size of internal storage …
 
static native MkBufferC CreateTLS (String tlsName, boolean resetB)
  Java: [static] MkBufferC MkBufferC.CreateTLS(String tlsName, ?boolean resetB = true?) C-API
same as BufferCreate but require no cleanup
 
static MkBufferC CreateTLS (String tlsName)
  Java: [static] MkBufferC MkBufferC.CreateTLS(String tlsName, ?boolean resetB = true?) C-API
same as BufferCreate but require no cleanup
 
- Static Public Member Functions inherited from jvmkkernel.MkObjectC
static native void HandleDeleteByNetHdl (int netHdl)
  Java: [static] MkObjectC.HandleDeleteByNetHdl(int netHdl) C-API
Handle-Delete-Slot - delete a netHdl from handle-storage …
 
static native void DbgM (String message, int debug, String callfunc, int lvl)
  Java: [static] MkObjectC.DbgM(String message, ?int debug = 0?, ?String callfunc = null?, ?int lvl = 0?) C-API
debug: write a static-marker to the MkLogFileC (default: stderr) …
 
static void DbgM (String message)
  Java: [static] MkObjectC.DbgM(String message, ?int debug = 0?, ?String callfunc = null?, ?int lvl = 0?) C-API
debug: write a static-marker to the MkLogFileC (default: stderr) …
 
static void DbgM (String message, int debug)
  Java: [static] MkObjectC.DbgM(String message, ?int debug = 0?, ?String callfunc = null?, ?int lvl = 0?) C-API
debug: write a static-marker to the MkLogFileC (default: stderr) …
 
static void DbgM (String message, int debug, String callfunc)
  Java: [static] MkObjectC.DbgM(String message, ?int debug = 0?, ?String callfunc = null?, ?int lvl = 0?) 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: [static] MkObjectC.DeleteCallbackCleanup(String ident) C-API
cleanup the DeleteCallback installed with MkObjectDeleteCallbackSetup
 
static native void DeleteCallbackSetup (String ident, MkObjectDeleteIF callback, String filter)
  Java: [static] MkObjectC.DeleteCallbackSetup(String ident, ?MkObjectDeleteIF callback = null?, ?String filter = null?) C-API
Create/Delete the instance-delete-callback
 
static void DeleteCallbackSetup (String ident)
  Java: [static] MkObjectC.DeleteCallbackSetup(String ident, ?MkObjectDeleteIF callback = null?, ?String filter = null?) C-API
Create/Delete the instance-delete-callback
 
static void DeleteCallbackSetup (String ident, MkObjectDeleteIF callback)
  Java: [static] MkObjectC.DeleteCallbackSetup(String ident, ?MkObjectDeleteIF callback = null?, ?String filter = null?) 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

- Protected Member Functions inherited from jvmkkernel.MkObjectC
 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)
 
- Static Package Functions inherited from jvmkkernel.MkObjectC

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

Definition at line 18 of file MkBufferC.java.

Member Function Documentation

◆ ToObject()

Object jvmkkernel.MkBufferC.ToObject ( )

Definition at line 422 of file MkBufferC.java.

422 {
423 Object ret = null;
424 switch (GetType1()) {
425 case 'O': ret = GetBOL(); break;
426 case 'Y': ret = GetI8(); break;
427 case 'S': ret = GetI16(); break;
428 case 'I': ret = GetI32(); break;
429 case 'W': ret = GetI64(); break;
430 case 'F': ret = GetFLT(); break;
431 case 'D': ret = GetDBL(); break;
432 case 'C': ret = GetSTR(); break;
433 case 'B': ret = GetBIN(); break;
434 case 'L': {
435 // java has !! NO !! destructor -> memory leak if bfl is NOT detroyed
436 MkBufferListC bfl = GetBFL().Dup();
437 try {
438 ret = bfl.ToList();
439 } finally {
440 bfl.close();
441 }
442 break;
443 }
444 case 'T': {
445 MkErrorC.DEFAULT().SetC("INTERNAL ERROR: type 'TRA' not supported");
446 break;
447 }
448 }
449 return ret;
450 }
native byte[] GetBIN()
Java: doc_mk_jv_BufferGetBIN → 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 int GetI32()
Java: doc_mk_jv_BufferGetI32 → C-API get a val_out from a MkBufferC …
MkBufferListC GetBFL()
Java: MkBufferListC buf.GetBFL(?MkBufferListC val_inout = null?) → C-API function to read an Mk...
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 short GetI16()
Java: doc_mk_jv_BufferGetI16 → 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 byte GetI8()
Java: doc_mk_jv_BufferGetI8 → 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 char GetType1()
Java: char buf.GetType1() → C-API return the type from a MkBufferC as single character value …
native MkBufferListC Dup()
Java: [constructor] MkBufferListC bfl.Dup() → C-API Dup-Constructor - create a new MkBufferListC...

The documentation for this class was generated from the following file: