You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
var storageDirectory = Path.Combine(Application.StartupPath, "bdb");
Directory.CreateDirectory(storageDirectory);
var store = new FirkinHash(storageDirectory);
for (int i = 0; i < 10000000; i++)
{
var valueStream = store.Get(i.ToString());
if (valueStream == null)
{
break;
}
else
{
var r = valueStream.To();
if (r != i.ToString())
{
Debug.Assert(false);
}
}
}
for (int i = 0; i < 10000000; i++)
{
var st = i.ToStream();
store.Put(i.ToString(), st, st.Length);
}
The text was updated successfully, but these errors were encountered:
the next code does not work....
var storageDirectory = Path.Combine(Application.StartupPath, "bdb");
Directory.CreateDirectory(storageDirectory);
var store = new FirkinHash(storageDirectory);
for (int i = 0; i < 10000000; i++)
{
var valueStream = store.Get(i.ToString());
if (valueStream == null)
{
break;
}
else
{
var r = valueStream.To();
if (r != i.ToString())
{
Debug.Assert(false);
}
}
}
for (int i = 0; i < 10000000; i++)
{
var st = i.ToStream();
store.Put(i.ToString(), st, st.Length);
}
The text was updated successfully, but these errors were encountered: