internal int ReadStruct(byte[] b, int Offset) { uint method = 0x494; this.TrEntry(method, new object[] { b, Offset }); IntPtr zero = IntPtr.Zero; int length = this.GetLength(); zero = Marshal.AllocCoTaskMem(length); if (length > (b.Length - Offset)) { length = b.Length - Offset; } try { Marshal.Copy(b, Offset, zero, length); this.mqctlo = (structMQCTLO)Marshal.PtrToStructure(zero, typeof(structMQCTLO)); } finally { Marshal.FreeCoTaskMem(zero); base.TrExit(method); } return(Offset + this.GetLength()); }
public MQCTLO() { base.TrConstructor("%Z% %W% %I% %E% %U%"); this.mqctlo = new structMQCTLO(); this.mqctlo.strucId = new byte[] { 0x43, 0x54, 0x4c, 0x4f }; this.mqctlo.version = 1; this.mqctlo.options = 0; this.mqctlo.waitInterval = -1; this.mqctlo.connectionArea = IntPtr.Zero; }