public int Compare(bool leftExists, ReadOnlySpan <byte> left, bool rightExists, ReadOnlySpan <byte> right) { double leftValue = leftExists ? ScalarSpanReader.ReadDouble(left) : this.defaultValue; double rightValue = rightExists ? ScalarSpanReader.ReadDouble(right) : this.defaultValue; return(leftValue.CompareTo(rightValue)); }
public int Compare(bool leftExists, ReadOnlySpan <byte> left, bool rightExists, ReadOnlySpan <byte> right) { if (!leftExists || !rightExists) { return(leftExists.CompareTo(rightExists)); } return(ScalarSpanReader.ReadDouble(left).CompareTo(ScalarSpanReader.ReadDouble(right))); }
public override double ReadDouble(int offset) { CheckAlignment(offset, sizeof(double)); return(ScalarSpanReader.ReadDouble(this.memory.AsSpan().Slice(offset))); }
public int Compare(ReadOnlySpan <byte> left, ReadOnlySpan <byte> right) => ScalarSpanReader.ReadDouble(left).CompareTo(ScalarSpanReader.ReadDouble(right));
public override double ReadDouble(int offset) { return(ScalarSpanReader.ReadDouble(this.memory.AsSpan().Slice(offset))); }