コード例 #1
0
        internal int ReadStruct(byte[] b, int Offset)
        {
            uint method = 4;

            this.TrEntry(method);
            int num2 = 0;

            try
            {
                IntPtr zero   = IntPtr.Zero;
                int    length = this.GetLength();
                zero = Marshal.AllocCoTaskMem(length);
                Marshal.Copy(b, Offset, zero, length);
                this.mqapi = (structMQAPI)Marshal.PtrToStructure(zero, typeof(structMQAPI));
                Marshal.FreeCoTaskMem(zero);
                num2 = Offset + length;
            }
            finally
            {
                base.TrExit(method);
            }
            return(num2);
        }
コード例 #2
0
 internal MQAPI()
 {
     base.TrConstructor("%Z% %W%  %I% %E% %U%");
     this.mqapi = new structMQAPI();
 }