コード例 #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
ファイル: BDB.cs プロジェクト: JoshData/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));
			}
コード例 #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));
			}