Lines Matching refs:limit
40 int limit;
76 * segment contains the data in {@code [pos+byteCount..limit)}. This can be
83 int bSize = (limit - pos) - byteCount;
92 before.limit += aSize;
99 limit -= bSize;
100 after.limit += bSize;
112 if ((prev.limit - prev.pos) + (limit - pos) > SIZE) return; // Cannot compact.
113 writeTo(prev, limit - pos);
122 if (byteCount + (sink.limit - sink.pos) > SIZE) throw new IllegalArgumentException();
124 if (sink.limit + byteCount > SIZE) {
126 System.arraycopy(sink.data, sink.pos, sink.data, 0, sink.limit - sink.pos);
127 sink.limit -= sink.pos;
131 System.arraycopy(data, pos, sink.data, sink.limit, byteCount);
132 sink.limit += byteCount;