Lines Matching refs:pos
40 int pos;
64 this(shareFrom.data, shareFrom.pos, shareFrom.limit);
68 Segment(byte[] data, int pos, int limit) {
70 this.pos = pos;
103 * segment contains the data in {@code [pos..pos+byteCount)}. The second
104 * segment contains the data in {@code [pos+byteCount..limit)}. This can be
110 if (byteCount <= 0 || byteCount > limit - pos) throw new IllegalArgumentException();
112 prefix.limit = prefix.pos + byteCount;
113 pos += byteCount;
125 int byteCount = limit - pos;
126 int availableByteCount = SIZE - prev.limit + (prev.shared ? 0 : prev.pos);
139 if (sink.limit + byteCount - sink.pos > SIZE) throw new IllegalArgumentException();
140 System.arraycopy(sink.data, sink.pos, sink.data, 0, sink.limit - sink.pos);
141 sink.limit -= sink.pos;
142 sink.pos = 0;
145 System.arraycopy(data, pos, sink.data, sink.limit, byteCount);
147 pos += byteCount;