Tests if this reference includes the given index and span.
bool test(int index, int span) { return this.index <= index && this.index + this.span > index; }