public static ITuple ToTupleOrDefault(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) => .....)" if (slice.IsNullOrEmpty) { return(slice.HasValue ? STuple.Empty : null); } return(STuple.Unpack(slice)); }
public static ITuple 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(STuple.Unpack(slice)); }
public ITuple UnpackKey(Slice packed) { return(STuple.Unpack(packed)); }