17using System.Reflection;
18using System.Runtime.InteropServices;
19using System.Runtime.CompilerServices;
20using System.Collections.Generic;
21using System.Threading;
29 public partial class MqDumpC
34 private readonly
static ConstructorInfo ctor =
getCtor(typeof(MqDumpC));
35 private readonly
static ThreadLocal<MqDumpC> MK_NULL =
new ThreadLocal<MqDumpC>(() => {
43 private static MqDumpC MqDumpC_ObjCreate (IntPtr
hdl) {
47 private static IntPtr MqDumpC_SelfCreate (IntPtr
mkrt, IntPtr obj, IntPtr env) {
51 private static void MqDumpC_SelfUnlink (IntPtr
mkrt, IntPtr
self, IntPtr env) {
55 internal static void SetupThreadDMP (IntPtr
mkrt) {
56 Mq.MqCsTypeUpdate(
mkrt, MqCsTypeLookupE.DMP, MqDumpC_SelfCreate, MqDumpC_SelfUnlink);
59 #if !META_STATIC_OVERWRITE
64 SetupThreadDMP(IntPtr.Zero);
70 internal MqDumpC (IntPtr dumpP) : base(dumpP) {
77 public partial class MqDumpC {
87 IntPtr __retVal__L =
Mq.MqDumpHandleResolve(IntPtr.Zero, netHdl);
99 public partial class MqDumpC {
109 IntPtr __retVal__L =
Mq.MqDumpNext(
hdl);
115 IntPtr __retVal__L =
Mq.MqDumpPrev(
hdl);
123 IntPtr __retVal__L =
Mq.MqDumpInstances(IntPtr.Zero);
131 public partial class MqDumpC {
141 IntPtr __retVal__L =
Mq.MqDumpGetNull();
149 public partial class MqDumpC {
161 long __retVal__L =
Mq.MqDumpSizeGet(
hdl);
167 IntPtr __retVal__L =
Mq.MqDumpTokenGet(
hdl);
168 return Marshal.PtrToStringAnsi(__retVal__L);
187 MkErrorE errVal =
Mq.MqDumpExport(IntPtr.Zero, ctx_hdl, ref dumpP_inout_hdl);
189 return (IntPtr)dumpP_inout_hdl;
196 MkErrorE errVal =
Mq.MqDumpError(IntPtr.Zero, error_hdl, ref dumpP_inout_hdl);
198 return MqDumpC.MqDumpC_ObjCreate(dumpP_inout_hdl);
208 MkErrorE errVal =
Mq.MqDumpExport(IntPtr.Zero, ctx_hdl, ref dumpP_inout_hdl);
210 return MqDumpC.MqDumpC_ObjCreate(dumpP_inout_hdl);
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);
222 MkErrorE errVal =
Mq.MqDumpBinSet(IntPtr.Zero, data_ref, out dmp_out);
224 return MqDumpC.MqDumpC_ObjCreate(dmp_out);
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;
static void Check(IntPtr ctx, MkErrorE err)
static object atomObjNew(Type type, ConstructorInfo ctor, IntPtr obj)
static IntPtr getOBJ_null_allow(MkObjectC obj)
static object atomObjCreate(Type type, ConstructorInfo ctor, IntPtr obj)
static void atomSelfUnlink(IntPtr self, IntPtr env)
static object atomSelfNull(ConstructorInfo ctor)
static IntPtr getOBJ(string cls, MkObjectC obj)
static ConstructorInfo getCtor(Type type)
static IntPtr atomSelfCreate(ConstructorInfo ctor, IntPtr obj, IntPtr env)
static Mk.MkBinaryR MkBinaryCreate(long size, IntPtr data)
MqContextC - the class known as ctx or context is the application-handle of the application-server an...
MqDumpC - the class known as dmp or dump is used to export a csmqmsgque data package as binary …
static MqDumpC MqDumpC_ObjNew(IntPtr hdl)
new MqDumpC Prev()
C#: MqDumpC dmp.Prev() → C-API get previous instance from linked-list of MqDumpS type
new static MqDumpC GetNull()
C#: [static] MqDumpC MqDumpC.GetNull() → C-API Null-Slot - return a MqDumpC typed NULL instance ...
new static MqDumpC Instances()
C#: [static] MqDumpC MqDumpC.Instances() → C-API get head-instance from linked-list of MqDumpS t...
new static MqDumpC HandleResolve(Int32 netHdl)
C#: [static] MqDumpC MqDumpC.HandleResolve(Int32 netHdl) → C-API Handle-Resolve-Slot - return a ...
new MqDumpC Next()
C#: MqDumpC dmp.Next() → C-API get next instance from linked-list of MqDumpS type
long SizeGet()
C#: long dump.SizeGet() → C-API report the binary data size from an MqDumpS object
string TokenGet()
C#: string dump.TokenGet() → C-API return the MqContextC_ServiceApi_Identifer …
byte[] BinGet()
C#: byte[] dump.BinGet() → C-API export the binary data from an MqDumpS object
static MqDumpC Export(MqContextC ctx, MqDumpC dumpP_inout=null)
C#: [constructor,static] MqDumpC MqDumpC.Export(MqContextC ctx, MqDumpC dumpP_inout = null) → C-API ...
void Import(MqContextC ctx)
C#: dump.Import(MqContextC ctx) → C-API import the dump-package into the ctx-read-data-package ...
static MqDumpC Error(MqContextC error, MqDumpC dumpP_inout=null)
C#: [constructor,static] MqDumpC MqDumpC.Error(MqContextC error, MqDumpC dumpP_inout = null) → C-API...
static IntPtr CTOR(MqContextC ctx, MqDumpC dumpP_inout=null)
C#: [constructor,static] MqDumpC MqDumpC.Export(MqContextC ctx, MqDumpC dumpP_inout = null) → C-API ...
MqDumpC(MqContextC ctx, MqDumpC dumpP_inout=null)
CONSTRUCTOR.
static MqDumpC BinSet(byte[] data)
C#: [constructor,static] MqDumpC MqDumpC.BinSet(byte[] data) → C-API create an MqDumpS object fr...