internal int ReadStruct(byte[] b, int Offset) { uint method = 0x2bd; this.TrEntry(method, new object[] { b, Offset }); int length = this.GetLength(); IntPtr zero = IntPtr.Zero; int result = 0; try { zero = Marshal.AllocCoTaskMem(length); if (length > (b.Length - Offset)) { length = b.Length - Offset; } Marshal.Copy(b, Offset, zero, length); this.spiSyncpointOut = (SPISYNCPOINTOUT)Marshal.PtrToStructure(zero, typeof(SPISYNCPOINTOUT)); Marshal.FreeCoTaskMem(zero); length = this.GetVersionLength(); result = Offset + length; } finally { base.TrExit(method, result); } return(result); }
public MQSPISyncpointOut(int version) { base.TrConstructor("%Z% %W% %I% %E% %U%", new object[] { version }); this.spiSyncpointOut = new SPISYNCPOINTOUT(); this.spiSyncpointOut.ID = rfpVB_ID_SYNCPOINT_OUT; this.Version = version; }