public static IFdbTuple ToTuple(this Slice slice)
 {
     //note: this method is here to allow a fluent API with method chaining, like "something.ToFoundationDbKey().ToTuple().With((int x, int y) => .....)"
     return(FdbTuple.Unpack(slice));
 }
 public override string ToString()
 {
     return("(" + FdbTuple.Stringify(this.Item1) + ", " + FdbTuple.Stringify(this.Item2) + ")");
 }
 public IFdbTuple this[int?fromIncluded, int?toExcluded]
 {
     get { return(FdbTuple.Splice(this, fromIncluded, toExcluded)); }
 }
예제 #4
0
 public override string ToString()
 {
     //TODO: should we add the prefix to the string representation ?
     // => something like "<prefix>(123, 'abc', true)"
     return(FdbTuple.ToString(this));
 }
 public Slice ToSlice()
 {
     return(FdbTuple.Pack(this.Item1, this.Item2));
 }
예제 #6
0
 public Slice ToSlice()
 {
     return(FdbTuple.EncodeKey(this.Item1));
 }
예제 #7
0
 public override string ToString()
 {
     // singleton tuples end with a trailing ','
     return("(" + FdbTuple.Stringify(this.Item1) + ",)");
 }
예제 #8
0
 public IFdbTuple Concat([NotNull] IFdbTuple tuple)
 {
     return(FdbTuple.Concat(this, tuple));
 }
예제 #9
0
 public override string ToString()
 {
     //OPTIMIZE: this could be optimized, because it may be called a lot when logging is enabled on keys parsed from range reads
     // => each slice has a type prefix that could be used to format it to a StringBuilder faster, maybe?
     return(FdbTuple.ToString(this));
 }
예제 #10
0
 public Slice GetSlice(int index)
 {
     return(m_slices[m_offset + FdbTuple.MapIndex(index, m_count)]);
 }
 public IFdbTuple ToTuple(T key)
 {
     return(FdbTuple.Create(key));
 }
예제 #12
0
 public override string ToString()
 {
     return(FdbTuple.ToString(m_items, m_offset, m_count));
 }