{
Reset();
keyStream
formatter
DbEntry key = DbEntry
DeleteStatus status = btree
switch (status)
{
case DeleteStatus
case DeleteStatus
return true;
case DeleteStatus
default:
return false;
}
}
public void Dispose()
{
if (!iscomit)
Commit();
db
db
}
private void Reset()
{
iscomit = false;
}
private void Init()
{
env = new Env(EnvCreateFlags
Env
Env
Env
Env
Env
Env
Env
env
txn = env
db = env
btree = (DbBTree)db
}
private void StreamInit()
{
formatter = new BinaryFormatter();
keyStream = new MemoryStream();
dataStream = new MemoryStream();
}
private bool GetNextRecord(DbBTreeCursor cursor
{
ReadStatus status;
keyStream
dataStream
DbEntry key = DbEntry
DbEntry data = DbEntry
do
{
status = cursor
switch (status)
{
case ReadStatus
case ReadStatus
case ReadStatus
[
From:http://tw.wingwit.com/Article/program/net/201311/14798.html