示例#1
0
 public void Add(mstring key, recordset value)
 {
     Add(key.ToByteSlice(StaticGlobals.DSpace_KeyLength), value.ToByteSlice());
 }        
示例#2
0
 public void Add(mstring key, mstring value)
 {
     ByteSlice bKey = key.ToByteSlice(StaticGlobals.DSpace_KeyLength);
     ByteSlice bValue = value.ToByteSlice();
     Add(bKey, bValue);
 }
示例#3
0
 public static ByteSlice Prepare(mstring ms)
 {
     return ms.ToByteSlice();
 }
示例#4
0
        public void Add(recordset key, mstring value)
        {
            if (key.ContainsString)
            {
                throw new Exception("Key recordset cannot contain string.");
            }

            Add(key.ToByteSlice(StaticGlobals.DSpace_KeyLength), value.ToByteSlice());
        }
示例#5
0
 public static ByteSlice PreparePaddedMString(mstring x, int size)
 {
     return x.ToByteSlice(size);
 }