Example #1
0
            public void BeginTransaction()
            {
                int ret = funcs2.txn_begin(envptr, Txn, out Txn, DB_DIRTY_READ);

                CheckError(ret);
                txnfuncs = (txnstruct)Marshal.PtrToStructure((IntPtr)((int)Txn + 100), typeof(txnstruct));
            }
Example #2
0
			public void BeginTransaction() {
				int ret = funcs2.txn_begin(envptr, Txn, out Txn, DB_DIRTY_READ);
				CheckError(ret);
				txnfuncs = (txnstruct)Marshal.PtrToStructure((IntPtr)((int)Txn+100), typeof(txnstruct));
			}
Example #3
0
			public void BeginTransaction() {
				int ret = funcs.txn_begin(envptr, Txn, out Txn, DB_DIRTY_READ);
				CheckError(ret);

				int offset = 100;
				if (IntPtr.Size == 8)
					offset = 192;
				
				txnfuncs = (txnstruct)Marshal.PtrToStructure((IntPtr)((int)Txn + offset), typeof(txnstruct));
			}