Searched defs:offset (Results 1 - 25 of 222) sorted by relevance

123456789

/libcore/luni/src/main/java/java/lang/
H A DArrayIndexOutOfBoundsException.java70 public ArrayIndexOutOfBoundsException(int sourceLength, int offset, argument
72 super("length=" + sourceLength + "; regionStart=" + offset
H A DStringIndexOutOfBoundsException.java78 public StringIndexOutOfBoundsException(String s, int offset, int count) { argument
79 this(s.length(), offset, count);
86 public StringIndexOutOfBoundsException(int sourceLength, int offset, argument
88 super("length=" + sourceLength + "; regionStart=" + offset
H A DUnsafeByteSequence.java51 public void write(byte[] buffer, int offset, int length) { argument
57 System.arraycopy(buffer, offset, bytes, count, length);
/libcore/luni/src/main/java/java/nio/channels/
H A DGatheringByteChannel.java47 * if {@code offset < 0} or {@code length < 0}, or if
48 * {@code offset + length} is greater than the size of
60 * byte buffers, in order, starting at {@code buffers[offset]}. The number
69 * @param offset
85 * if {@code offset < 0} or {@code length < 0}, or if
86 * {@code offset + length} is greater than the size of
93 public long write(ByteBuffer[] buffers, int offset, int length) argument
H A DScatteringByteChannel.java56 * buffers, in order, starting at {@code buffers[offset]}. The number of
64 * @param offset
79 * if {@code offset < 0} or {@code length < 0}, or if
80 * {@code offset + length} is greater than the size of
88 public long read(ByteBuffer[] buffers, int offset, int length) argument
/libcore/luni/src/main/java/javax/crypto/spec/
H A DDESedeKeySpec.java60 * <code>offset</code>.
64 * @param offset
65 * the offset to start at.
67 * if the length of the key data starting at offset is less than
72 public DESedeKeySpec(byte[] key, int offset) throws InvalidKeyException { argument
76 if (key.length - offset < DES_EDE_KEY_LEN) {
80 System.arraycopy(key, offset, this.key, 0, DES_EDE_KEY_LEN);
95 * Returns whether the specified key data starting at <code>offset</code> is
100 * @param offset
101 * the offset t
108 isParityAdjusted(byte[] key, int offset) argument
[all...]
H A DIvParameterSpec.java54 * <code>offset</code>.
57 * if the specified buffer is null or <code>offset</code> and
61 * if <code>offset</code> or <code>byteCount</code> are negative.
63 public IvParameterSpec(byte[] iv, int offset, int byteCount) { argument
64 if ((iv == null) || (iv.length - offset < byteCount)) {
67 Arrays.checkOffsetAndCount(iv.length, offset, byteCount);
69 System.arraycopy(iv, offset, this.iv, 0, byteCount);
/libcore/luni/src/main/java/org/w3c/dom/
H A DText.java42 * Breaks this node into two nodes at the specified <code>offset</code>,
44 * will contain all the content up to the <code>offset</code> point. A
46 * after the <code>offset</code> point, is returned. If the original
48 * of the original node. When the <code>offset</code> is equal to the
50 * @param offset The 16-bit unit offset at which to split, starting from
54 * INDEX_SIZE_ERR: Raised if the specified offset is negative or greater
58 public Text splitText(int offset) argument
/libcore/dalvik/src/main/java/org/apache/harmony/dalvik/ddmc/
H A DChunk.java25 * The "offset" and "length" fields are present so handlers can over-allocate
35 public int offset, length; // position within "data" field in class:Chunk
45 public Chunk(int type, byte[] data, int offset, int length) { argument
48 this.offset = offset;
54 * offset 0 and continue to the current position.
60 this.offset = buf.arrayOffset();
/libcore/luni/src/main/java/java/io/
H A DBufferedOutputStream.java97 * {@code offset} to this stream. If there is room in the buffer to hold the
104 * @param offset
110 * if {@code offset < 0} or {@code length < 0}, or if
111 * {@code offset + length} is greater than the size of
118 * If offset or count is outside of bounds.
121 public synchronized void write(byte[] buffer, int offset, int length) throws IOException { argument
131 out.write(buffer, offset, length);
135 Arrays.checkOffsetAndCount(buffer.length, offset, length);
142 System.arraycopy(buffer, offset, internalBuffer, count, length);
H A DFilterInputStream.java119 * byte array {@code buffer} starting at {@code offset}. Returns the number
126 * @param offset
137 public int read(byte[] buffer, int offset, int count) throws IOException { argument
138 return in.read(buffer, offset, count);
H A DFilterOutputStream.java93 * {@code offset} to the target stream.
97 * @param offset
102 * if {@code offset < 0} or {@code count < 0}, or if
103 * {@code offset + count} is bigger than the length of
109 public void write(byte[] buffer, int offset, int length) throws IOException { argument
110 Arrays.checkOffsetAndCount(buffer.length, offset, length);
114 write(buffer[offset + i]);
H A DFilterReader.java120 * in the byte array {@code buffer} starting at {@code offset}. Returns the
126 * @param offset
137 public int read(char[] buffer, int offset, int count) throws IOException { argument
139 return in.read(buffer, offset, count);
H A DFilterWriter.java78 * starting at position {@code offset} to the target writer.
82 * @param offset
90 public void write(char[] buffer, int offset, int count) throws IOException { argument
92 out.write(buffer, offset, count);
119 * @param offset
127 public void write(String str, int offset, int count) throws IOException { argument
129 out.write(str, offset, count);
H A DInputStream.java168 * the byte array {@code b} starting at {@code offset}.
172 * @param offset
180 * if {@code offset < 0} or {@code length < 0}, or if
181 * {@code offset + length} is greater than the length of
186 public int read(byte[] buffer, int offset, int length) throws IOException { argument
187 Arrays.checkOffsetAndCount(buffer.length, offset, length);
200 buffer[offset + i] = (byte) c;
H A DObjectInput.java72 * byte array {@code buffer} starting at offset {@code count}. Blocks while
77 * @param offset
87 public int read(byte[] buffer, int offset, int count) throws IOException; argument
H A DObjectOutput.java58 * position {@code offset} to the target stream. Blocks until all bytes are
63 * @param offset
71 public void write(byte[] buffer, int offset, int count) throws IOException; argument
H A DOutputStream.java87 * position {@code offset} to this stream.
91 * @param offset
99 * if {@code offset < 0} or {@code count < 0}, or if
100 * {@code offset + count} is bigger than the length of
103 public void write(byte[] buffer, int offset, int count) throws IOException { argument
104 Arrays.checkOffsetAndCount(buffer.length, offset, count);
105 for (int i = offset; i < offset + count; i++) {
H A DPipedOutputStream.java119 * {@code offset} to this stream. The written data can then be read from the
128 * @param offset
134 * if {@code offset < 0} or {@code count < 0}, or if {@code
135 * offset + count} is bigger than the length of {@code buffer}.
146 public void write(byte[] buffer, int offset, int count) throws IOException { argument
147 super.write(buffer, offset, count);
H A DPipedWriter.java124 * starting at offset {@code index} to this writer. The written data can
133 * @param offset
139 * if {@code offset < 0} or {@code count < 0}, or if {@code
140 * offset + count} is bigger than the length of {@code buffer}.
154 public void write(char[] buffer, int offset, int count) throws IOException { argument
159 reader.receive(buffer, offset, count);
H A DSequenceInputStream.java150 * stores them in the byte array {@code buffer} starting at {@code offset}.
167 * @param offset
176 * if {@code offset < 0} or {@code count < 0}, or if {@code
177 * offset + count} is greater than the size of {@code buffer}.
184 public int read(byte[] buffer, int offset, int count) throws IOException { argument
188 Arrays.checkOffsetAndCount(buffer.length, offset, count);
190 int result = in.read(buffer, offset, count);
H A DStringBufferInputStream.java83 * in the byte array {@code b} starting at {@code offset}.
87 * @param offset
95 * if {@code offset < 0} or {@code length < 0}, or if
96 * {@code offset + length} is greater than the length of
102 public synchronized int read(byte[] buffer, int offset, int length) { argument
106 Arrays.checkOffsetAndCount(buffer.length, offset, length);
113 buffer[offset + i] = (byte) this.buffer.charAt(pos + i);
/libcore/luni/src/main/java/java/nio/
H A DDoubleArrayBuffer.java36 protected final int offset; field in class:DoubleArrayBuffer
46 DoubleArrayBuffer(int capacity, double[] backingArray, int offset) { argument
49 this.offset = offset;
57 return backingArray[offset + position++];
63 return backingArray[offset + index];
71 System.arraycopy(backingArray, offset + position, dst, dstOffset, doubleCount);
H A DFloatArrayBuffer.java36 protected final int offset; field in class:FloatArrayBuffer
46 FloatArrayBuffer(int capacity, float[] backingArray, int offset) { argument
49 this.offset = offset;
57 return backingArray[offset + position++];
63 return backingArray[offset + index];
71 System.arraycopy(backingArray, offset + position, dst, dstOffset, floatCount);
H A DIntArrayBuffer.java36 protected final int offset; field in class:IntArrayBuffer
46 IntArrayBuffer(int capacity, int[] backingArray, int offset) { argument
49 this.offset = offset;
57 return backingArray[offset + position++];
63 return backingArray[offset + index];
71 System.arraycopy(backingArray, offset + position, dst, dstOffset, intCount);

Completed in 1391 milliseconds

123456789