theLink 10.0
Loading...
Searching...
No Matches
MqDumpC_TOR_CS_API

MqDumpC - various functions to create, initialize and destroy a dumpMore...

+ Collaboration diagram for MqDumpC_TOR_CS_API:

Functions

static IntPtr csmqmsgque.MqDumpC.CTOR (MqContextC ctx, MqDumpC dumpP_inout=null)
  C#: [constructor,static] MqDumpC MqDumpC.Export(MqContextC ctx, MqDumpC dumpP_inout = null) C-API
create a MqDumpC as export of the ctx-read-data-package
 
static MqDumpC csmqmsgque.MqDumpC.Error (MqContextC error, MqDumpC dumpP_inout=null)
  C#: [constructor,static] MqDumpC MqDumpC.Error(MqContextC error, MqDumpC dumpP_inout = null) C-API
export the context->error into the dump-package
 
 csmqmsgque.MqDumpC.MqDumpC (MqContextC ctx, MqDumpC dumpP_inout=null)
 CONSTRUCTOR.
 
static MqDumpC csmqmsgque.MqDumpC.Export (MqContextC ctx, MqDumpC dumpP_inout=null)
  C#: [constructor,static] MqDumpC MqDumpC.Export(MqContextC ctx, MqDumpC dumpP_inout = null) C-API
create a MqDumpC as export of the ctx-read-data-package
 
static MqDumpC csmqmsgque.MqDumpC.BinSet (byte[] data)
  C#: [constructor,static] MqDumpC MqDumpC.BinSet(byte[] data) C-API
create an MqDumpS object from binary data
 
byte[] csmqmsgque.MqDumpC.BinGet ()
  C#: byte[] dump.BinGet() C-API
export the binary data from an MqDumpS object
 
void csmqmsgque.MqDumpC.Import (MqContextC ctx)
  C#: dump.Import(MqContextC ctx) C-API
import the dump-package into the ctx-read-data-package
 

Detailed Description

MqDumpC - various functions to create, initialize and destroy a dump

Function Documentation

◆ BinGet()

byte[] csmqmsgque.MqDumpC.BinGet ( )
inline

C#: byte[] dump.BinGet() C-API
export the binary data from an MqDumpS object

Definition at line 230 of file MqDumpC.cs.

230 {
231 Mk.MkBinaryR __retVal__L = Mq.MqDumpBinGet(hdl);
232 int __retVal__L_size = (int) __retVal__L.size;
233 byte[] ____retVal__L__S = new byte[__retVal__L_size];
234 Marshal.Copy(__retVal__L.data,____retVal__L__S,0,(int)__retVal__L_size);
235 return ____retVal__L__S;
236 }
csmqmsgque.MqMsgque Mq

◆ BinSet()

static MqDumpC csmqmsgque.MqDumpC.BinSet ( byte[] data)
inlinestatic

C#: [constructor,static] MqDumpC MqDumpC.BinSet(byte[] data) C-API
create an MqDumpS object from binary data

Definition at line 216 of file MqDumpC.cs.

216 {
217 IntPtr dmp_out;
218 var data_size = Marshal.SizeOf(data[0]) * data.Length;
219 var data_data = Marshal.AllocHGlobal(data_size);
220 Marshal.Copy(data,0,data_data,data_size);
221 Mk.MkBinaryR data_ref = Mk.MkBinaryCreate(data_size,data_data);
222 MkErrorE errVal = Mq.MqDumpBinSet(IntPtr.Zero, data_ref, out dmp_out);
223 if (errVal > MkErrorE.CONTINUE) MkErrorC.Check(errVal);
224 return MqDumpC.MqDumpC_ObjCreate(dmp_out);
225 }
static void Check(IntPtr ctx, MkErrorE err)
static Mk.MkBinaryR MkBinaryCreate(long size, IntPtr data)
MkErrorE

◆ CTOR()

static IntPtr csmqmsgque.MqDumpC.CTOR ( MqContextC ctx,
MqDumpC dumpP_inout = null )
inlinestaticprotected

C#: [constructor,static] MqDumpC MqDumpC.Export(MqContextC ctx, MqDumpC dumpP_inout = null) C-API
create a MqDumpC as export of the ctx-read-data-package

Definition at line 184 of file MqDumpC.cs.

184 {
185 IntPtr ctx_hdl = MqContextC.getOBJ("MqContextC",ctx);
186 IntPtr dumpP_inout_hdl = MqDumpC.getOBJ_null_allow(dumpP_inout);
187 MkErrorE errVal = Mq.MqDumpExport(IntPtr.Zero, ctx_hdl, ref dumpP_inout_hdl);
188 if (errVal > MkErrorE.CONTINUE) MkErrorC.Check(errVal);
189 return (IntPtr)dumpP_inout_hdl;
190 }

◆ Error()

static MqDumpC csmqmsgque.MqDumpC.Error ( MqContextC error,
MqDumpC dumpP_inout = null )
inlinestatic

C#: [constructor,static] MqDumpC MqDumpC.Error(MqContextC error, MqDumpC dumpP_inout = null) C-API
export the context->error into the dump-package

Definition at line 193 of file MqDumpC.cs.

193 {
194 IntPtr error_hdl = MqContextC.getOBJ("MqContextC",error);
195 IntPtr dumpP_inout_hdl = MqDumpC.getOBJ_null_allow(dumpP_inout);
196 MkErrorE errVal = Mq.MqDumpError(IntPtr.Zero, error_hdl, ref dumpP_inout_hdl);
197 if (errVal > MkErrorE.CONTINUE) MkErrorC.Check(errVal);
198 return MqDumpC.MqDumpC_ObjCreate(dumpP_inout_hdl);
199 }

◆ Export()

static MqDumpC csmqmsgque.MqDumpC.Export ( MqContextC ctx,
MqDumpC dumpP_inout = null )
inlinestatic

C#: [constructor,static] MqDumpC MqDumpC.Export(MqContextC ctx, MqDumpC dumpP_inout = null) C-API
create a MqDumpC as export of the ctx-read-data-package

Definition at line 205 of file MqDumpC.cs.

205 {
206 IntPtr ctx_hdl = MqContextC.getOBJ("MqContextC",ctx);
207 IntPtr dumpP_inout_hdl = MqDumpC.getOBJ_null_allow(dumpP_inout);
208 MkErrorE errVal = Mq.MqDumpExport(IntPtr.Zero, ctx_hdl, ref dumpP_inout_hdl);
209 if (errVal > MkErrorE.CONTINUE) MkErrorC.Check(errVal);
210 return MqDumpC.MqDumpC_ObjCreate(dumpP_inout_hdl);
211 }

◆ Import()

void csmqmsgque.MqDumpC.Import ( MqContextC ctx)
inline

C#: dump.Import(MqContextC ctx) C-API
import the dump-package into the ctx-read-data-package

Definition at line 239 of file MqDumpC.cs.

239 {
240 IntPtr ctx_hdl = MqContextC.getOBJ("MqContextC",ctx);
241 MkErrorE errVal = Mq.MqDumpImport(mkrt, hdl, ctx_hdl);
242 MkErrorC.Check(hdl, errVal);
243 }

◆ MqDumpC()

csmqmsgque.MqDumpC.MqDumpC ( MqContextC ctx,
MqDumpC dumpP_inout = null )
inline

CONSTRUCTOR.

C#: [constructor,static] MqDumpC MqDumpC.Export(MqContextC ctx, MqDumpC dumpP_inout = null) C-API
create a MqDumpC as export of the ctx-read-data-package

Definition at line 202 of file MqDumpC.cs.

202: this(CTOR(ctx, dumpP_inout)) {}
static IntPtr CTOR(MqContextC ctx, MqDumpC dumpP_inout=null)
C#: [constructor,static] MqDumpC MqDumpC.Export(MqContextC ctx, MqDumpC dumpP_inout = null) → C-API ...
Definition MqDumpC.cs:184