Lines Matching defs:offset
39 * The current mark position. Initially set to 0 or the <code>offset</code>
65 * {@code buf} with the initial position set to {@code offset} and the
66 * number of bytes available set to {@code offset} + {@code length}.
70 * @param offset
75 public ByteArrayInputStream(byte[] buf, int offset, int length) {
77 pos = offset;
78 mark = offset;
79 count = offset + length > buf.length ? buf.length : offset + length;
146 * them in byte array {@code b} starting at {@code offset}. This
151 * @param offset
159 * if {@code offset < 0} or {@code length < 0}, or if
160 * {@code offset + length} is greater than the size of
166 public synchronized int read(byte[] buffer, int offset, int length) {
167 Arrays.checkOffsetAndCount(buffer.length, offset, length);
178 System.arraycopy(this.buf, pos, buffer, offset, copylen);