예제 #1
0
파일: BDB.cs 프로젝트: hnafar/semweb-dotnet
            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));
            }
예제 #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));
			}
예제 #3
0
파일: Bdb.cs 프로젝트: chergert/adroit
			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));
			}