Lines Matching refs:cursor
44 /** {@code >= 0;} current output cursor */
45 private int cursor;
100 this.cursor = 0;
129 byte[] result = new byte[cursor];
130 System.arraycopy(data, 0, result, 0, cursor);
136 return cursor;
141 if (cursor != expectedCursor) {
142 throw new ExceptionWithContext("expected cursor " +
143 expectedCursor + "; actual value: " + cursor);
149 int writeAt = cursor;
160 cursor = end;
165 int writeAt = cursor;
177 cursor = end;
182 int writeAt = cursor;
196 cursor = end;
201 int writeAt = cursor;
223 cursor = end;
265 int writeAt = cursor;
276 cursor = end;
281 int writeAt = cursor;
300 cursor = end;
314 int end = cursor + count;
328 cursor = end;
339 int end = (cursor + mask) & ~mask;
353 cursor = end;
373 annotations.add(new Annotation(cursor, msg));
388 if (lastEnd <= cursor) {
389 startAt = cursor;
406 annotations.get(sz - 1).setEndIfUnset(cursor);
426 if ((annotations != null) || (cursor != 0)) {
461 if (last.getStart() > cursor) {
464 } else if (last.getEnd() > cursor) {
465 last.setEnd(cursor);
486 int leftAt = 0; // left-hand byte output cursor
490 while ((leftAt < cursor) && (rightAt < rightSz)) {
514 if (leftAt < cursor) {
516 left.write(Hex.dump(data, leftAt, cursor - leftAt, leftAt,
546 System.arraycopy(data, 0, newData, 0, cursor);