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)); } }
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)); }
public Slice ToSlice() { return(FdbTuple.EncodeKey(this.Item1)); }
public override string ToString() { // singleton tuples end with a trailing ',' return("(" + FdbTuple.Stringify(this.Item1) + ",)"); }
public IFdbTuple Concat([NotNull] IFdbTuple tuple) { return(FdbTuple.Concat(this, tuple)); }
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)); }
public Slice GetSlice(int index) { return(m_slices[m_offset + FdbTuple.MapIndex(index, m_count)]); }
public IFdbTuple ToTuple(T key) { return(FdbTuple.Create(key)); }
public override string ToString() { return(FdbTuple.ToString(m_items, m_offset, m_count)); }