System.out.println(" found intersecting dataSection: " + dataSection+" intersect= "+dataSection.intersect(want));
Section intersect = dataSection.intersect(wantSection); this.total = intersect.computeSize(); if (total <= 0) {
Section needToRead = tiledSection.intersect(wantSection); // the part we need to read
Section intersect = dataSection.intersect(wantSection); this.total = intersect.computeSize(); if (total <= 0) {
Section needToRead = tiledSection.intersect(wantSection); // the part we need to read
Section intersect = dataSection.intersect(wantSection); this.total = intersect.computeSize(); if (total <= 0) {
Section needToRead = tiledSection.intersect(wantSection); // the part we need to read
public void testIntersectWithStrides() throws InvalidRangeException { Section have = new Section("121:121:1,0:1919:1"); Section want = new Section("100:229:3,100:191:7"); Section intersectCorrect = new Section("121:121:3,100:191:7"); Section intersect = have.intersect( want); assert intersect.equals(intersectCorrect); int offset = want.offset( intersect); assert offset == 98 : offset; }