예제 #1
0
 public static Iterator <byte[], byte[]> Find(StorageContext context, byte[] prefix)
 {
     return(null);
 }
예제 #2
0
 public static Iterator <string, byte[]> Find(StorageContext context, string prefix)
 {
     return(null);
 }
예제 #3
0
 public static void Delete(StorageContext context, byte[] key)
 {
     context.Delete(key);
 }
예제 #4
0
 public static void Delete(StorageContext context, string key)
 {
     Delete(context, Encoding.UTF8.GetBytes(key));
 }
예제 #5
0
 public static void Put(StorageContext context, string key, BigInteger value)
 {
     Put(context, Encoding.UTF8.GetBytes(key), value.ToByteArray());
 }
예제 #6
0
 public static void Put(StorageContext context, string key, string value)
 {
     Put(context, Encoding.UTF8.GetBytes(key), Encoding.UTF8.GetBytes(value));
 }
예제 #7
0
 public static void Put(StorageContext context, byte[] key, BigInteger value)
 {
     Put(context, key, value.ToByteArray());
 }
예제 #8
0
 public static void Put(StorageContext context, byte[] key, byte[] value)
 {
     context.Put(key, value);
 }
예제 #9
0
 public static byte[] Get(StorageContext context, string key)
 {
     return(Get(context, Encoding.UTF8.GetBytes(key)));
 }
예제 #10
0
 public static byte[] Get(StorageContext context, byte[] key)
 {
     return(context.Get(key));
 }
예제 #11
0
 public override string ToString()
 {
     return(StorageContext.ToHumanKey(data));
 }