Searched defs:off (Results 51 - 75 of 131) sorted by relevance

123456

/libcore/ojluni/src/main/java/java/io/
H A DBufferedWriter.java168 * @param off Offset from which to start reading characters
173 public void write(char cbuf[], int off, int len) throws IOException { argument
176 if ((off < 0) || (off > cbuf.length) || (len < 0) ||
177 ((off + len) > cbuf.length) || ((off + len) < 0)) {
188 out.write(cbuf, off, len);
192 int b = off, t = off + len;
214 * @param off Offse
219 write(String s, int off, int len) argument
[all...]
H A DByteArrayOutputStream.java142 * starting at offset <code>off</code> to this byte array output stream.
145 * @param off the start offset in the data.
148 public synchronized void write(byte b[], int off, int len) { argument
149 if ((off < 0) || (off > b.length) || (len < 0) ||
150 ((off + len) - b.length > 0)) {
154 System.arraycopy(b, off, buf, count, len);
H A DCharArrayReader.java113 * @param off Offset at which to start storing characters
120 public int read(char b[], int off, int len) throws IOException { argument
123 if ((off < 0) || (off > b.length) || (len < 0) ||
124 ((off + len) > b.length) || ((off + len) < 0)) {
141 System.arraycopy(buf, pos, b, off, len);
H A DCharArrayWriter.java92 * @param off the start offset in the data
95 public void write(char c[], int off, int len) { argument
96 if ((off < 0) || (off > c.length) || (len < 0) ||
97 ((off + len) > c.length) || ((off + len) < 0)) {
107 System.arraycopy(c, off, buf, count, len);
115 * @param off Offset from which to start reading characters
118 public void write(String str, int off, int len) { argument
124 str.getChars(off, of
[all...]
H A DDataInput.java217 * If {@code off} is negative, or {@code len}
218 * is negative, or {@code off+len} is
224 * byte read is stored into element {@code b[off]},
225 * the next one into {@code b[off+1]},
230 * @param off an int specifying the offset into the data.
236 void readFully(byte b[], int off, int len) throws IOException; argument
H A DDataInputStream.java122 * <p> The first byte read is stored into element <code>b[off]</code>, the
123 * next one into <code>b[off+1]</code>, and so on. The number of bytes read
126 * <code>b[off]</code> through <code>b[off+</code><i>k</i><code>-1]</code>,
127 * leaving elements <code>b[off+</code><i>k</i><code>]</code> through
128 * <code>b[off+len-1]</code> unaffected.
131 * <code>b[off]</code> and elements <code>b[off+len]</code> through
135 * @param off the start offset in the destination array <code>b</code>
141 * @exception IndexOutOfBoundsException If <code>off</cod
151 read(byte b[], int off, int len) argument
193 readFully(byte b[], int off, int len) argument
[all...]
H A DFileOutputStream.java314 * starting at offset <code>off</code> to this file output stream.
317 * @param off the start offset in the data.
321 public void write(byte b[], int off, int len) throws IOException { argument
326 IoBridge.write(fd, b, off, len);
H A DLineNumberReader.java151 * @param off
164 public int read(char cbuf[], int off, int len) throws IOException { argument
166 int n = super.read(cbuf, off, len);
168 for (int i = off; i < off + n; i++) {
H A DPipedInputStream.java222 * @param off the start offset of the data
228 synchronized void receive(byte b[], int off, int len) throws IOException { argument
249 System.arraycopy(b, off, buffer, in, nextTransferAmount);
251 off += nextTransferAmount;
361 * @param off the start offset in the destination array <code>b</code>
367 * @exception IndexOutOfBoundsException If <code>off</code> is negative,
369 * <code>b.length - off</code>
374 public synchronized int read(byte b[], int off, int len) throws IOException { argument
377 } else if (off < 0 || len < 0 || len > b.length - off) {
[all...]
H A DPipedReader.java208 synchronized void receive(char c[], int off, int len) throws IOException { argument
210 receive(c[off++]);
286 * @param off the start offset of the data.
296 public synchronized int read(char cbuf[], int off, int len) throws IOException { argument
306 if ((off < 0) || (off > cbuf.length) || (len < 0) ||
307 ((off + len) > cbuf.length) || ((off + len) < 0)) {
318 cbuf[off] = (char)c;
321 cbuf[off
[all...]
H A DPushbackInputStream.java151 * @param off the start offset in the destination array <code>b</code>
157 * @exception IndexOutOfBoundsException If <code>off</code> is negative,
159 * <code>b.length - off</code>
165 public int read(byte[] b, int off, int len) throws IOException { argument
169 } else if (off < 0 || len < 0 || len > b.length - off) {
180 System.arraycopy(buf, pos, b, off, avail);
182 off += avail;
186 len = super.read(b, off, len);
217 * read will have the value <code>b[off]</cod
229 unread(byte[] b, int off, int len) argument
[all...]
H A DPushbackReader.java98 * @param off Offset at which to start writing characters
106 public int read(char cbuf[], int off, int len) throws IOException { argument
113 } else if ((off < 0) || (off > cbuf.length)) {
122 System.arraycopy(buf, pos, cbuf, off, avail);
124 off += avail;
128 len = super.read(cbuf, off, len);
163 * character to be read will have the value <code>cbuf[off]</code>, the
164 * character after that will have the value <code>cbuf[off+1]</code>, and
168 * @param off Offse
174 unread(char cbuf[], int off, int len) argument
[all...]
/libcore/ojluni/src/main/java/java/net/
H A DSocketInputStream.java85 * @param off the start offset of the data
93 byte b[], int off, int len,
103 * @param off the start offset of the data
111 byte b[], int off, int len,
114 return socketRead0(fd, b, off, len, timeout);
129 * Reads into a byte array <i>b</i> at offset <i>off</i>,
132 * @param off the start offset of the data
138 public int read(byte b[], int off, int length) throws IOException { argument
139 return read(b, off, length, impl.getTimeout());
142 int read(byte b[], int off, in argument
92 socketRead0(FileDescriptor fd, byte b[], int off, int len, int timeout) argument
110 socketRead(FileDescriptor fd, byte b[], int off, int len, int timeout) argument
[all...]
/libcore/ojluni/src/main/java/java/nio/
H A DByteBufferAsDoubleBuffer.java39 int off, ByteOrder order) {
48 // the position of parent buffer. Therefore, value of "off" will be equal to parent buffer's
51 this.address = bb.address + off;
55 offset = off;
63 int off = (pos << 3) + offset;
64 assert (off >= 0);
65 return new ByteBufferAsDoubleBuffer(bb, -1, 0, rem, rem, off, order);
37 ByteBufferAsDoubleBuffer(ByteBuffer bb, int mark, int pos, int lim, int cap, int off, ByteOrder order) argument
H A DByteBufferAsFloatBuffer.java38 int off, ByteOrder order) {
47 // the position of parent buffer. Therefore, value of "off" will be equal to parent buffer's
50 this.address = bb.address + off;
54 offset = off;
62 int off = (pos << 2) + offset;
63 assert (off >= 0);
64 return new ByteBufferAsFloatBuffer(bb, -1, 0, rem, rem, off, order);
36 ByteBufferAsFloatBuffer(ByteBuffer bb, int mark, int pos, int lim, int cap, int off, ByteOrder order) argument
H A DByteBufferAsIntBuffer.java38 int off, ByteOrder order) {
47 // the position of parent buffer. Therefore, value of "off" will be equal to parent buffer's
50 this.address = bb.address + off;
54 offset = off;
62 int off = (pos << 2) + offset;
63 assert (off >= 0);
64 return new ByteBufferAsIntBuffer(bb, -1, 0, rem, rem, off, order);
36 ByteBufferAsIntBuffer(ByteBuffer bb, int mark, int pos, int lim, int cap, int off, ByteOrder order) argument
H A DByteBufferAsLongBuffer.java38 int off, ByteOrder order) {
47 // the position of parent buffer. Therefore, value of "off" will be equal to parent buffer's
50 this.address = bb.address + off;
54 offset = off;
62 int off = (pos << 3) + offset;
63 assert (off >= 0);
64 return new ByteBufferAsLongBuffer(bb, -1, 0, rem, rem, off, order);
36 ByteBufferAsLongBuffer(ByteBuffer bb, int mark, int pos, int lim, int cap, int off, ByteOrder order) argument
H A DByteBufferAsShortBuffer.java38 int off, ByteOrder order) {
47 // the position of parent buffer. Therefore, value of "off" will be equal to parent buffer's
50 this.address = bb.address + off;
54 offset = off;
62 int off = (pos << 1) + offset;
63 assert (off >= 0);
64 return new ByteBufferAsShortBuffer(bb, -1, 0, rem, rem, off, order);
36 ByteBufferAsShortBuffer(ByteBuffer bb, int mark, int pos, int lim, int cap, int off, ByteOrder order) argument
H A DHeapDoubleBuffer.java48 HeapDoubleBuffer(double[] buf, int off, int len) { // package-private argument
49 this(buf, off, len, false);
54 int off) {
55 this(buf, mark, pos, lim, cap, off, false);
63 HeapDoubleBuffer(double[] buf, int off, int len, boolean isReadOnly) { // package-private argument
64 super(-1, off, off + len, buf.length, buf, 0);
70 int off, boolean isReadOnly) {
71 super(mark, pos, lim, cap, buf, off);
52 HeapDoubleBuffer(double[] buf, int mark, int pos, int lim, int cap, int off) argument
68 HeapDoubleBuffer(double[] buf, int mark, int pos, int lim, int cap, int off, boolean isReadOnly) argument
H A DHeapFloatBuffer.java53 HeapFloatBuffer(float[] buf, int off, int len) { // package-private argument
54 this(buf, off, len, false);
57 HeapFloatBuffer(float[] buf, int off, int len, boolean isReadOnly) { // package-private argument
58 super(-1, off, off + len, buf.length, buf, 0);
64 int off) {
65 this(buf, mark, pos, lim, cap, off, false);
70 int off, boolean isReadOnly) {
71 super(mark, pos, lim, cap, buf, off);
62 HeapFloatBuffer(float[] buf, int mark, int pos, int lim, int cap, int off) argument
68 HeapFloatBuffer(float[] buf, int mark, int pos, int lim, int cap, int off, boolean isReadOnly) argument
H A DHeapIntBuffer.java53 HeapIntBuffer(int[] buf, int off, int len) { // package-private argument
54 this(buf, off, len, false);
57 HeapIntBuffer(int[] buf, int off, int len, boolean isReadOnly) { // package-private argument
58 super(-1, off, off + len, buf.length, buf, 0);
64 int off) {
65 this(buf, mark, pos, lim, cap, off, false);
70 int off, boolean isReadOnly) {
71 super(mark, pos, lim, cap, buf, off);
62 HeapIntBuffer(int[] buf, int mark, int pos, int lim, int cap, int off) argument
68 HeapIntBuffer(int[] buf, int mark, int pos, int lim, int cap, int off, boolean isReadOnly) argument
H A DHeapLongBuffer.java54 HeapLongBuffer(long[] buf, int off, int len) { // package-private argument
55 this(buf, off, len, false);
58 HeapLongBuffer(long[] buf, int off, int len, boolean isReadOnly) { // package-private argument
59 super(-1, off, off + len, buf.length, buf, 0);
65 int off) {
66 this(buf, mark, pos, lim, cap, off, false);
71 int off, boolean isReadOnly) {
72 super(mark, pos, lim, cap, buf, off);
63 HeapLongBuffer(long[] buf, int mark, int pos, int lim, int cap, int off) argument
69 HeapLongBuffer(long[] buf, int mark, int pos, int lim, int cap, int off, boolean isReadOnly) argument
H A DHeapShortBuffer.java53 HeapShortBuffer(short[] buf, int off, int len) { // package-private argument
54 this(buf, off, len, false);
57 HeapShortBuffer(short[] buf, int off, int len, boolean isReadOnly) { // package-private argument
58 super(-1, off, off + len, buf.length, buf, 0);
64 int off) {
65 this(buf, mark, pos, lim, cap, off, false);
70 int off, boolean isReadOnly) {
71 super(mark, pos, lim, cap, buf, off);
62 HeapShortBuffer(short[] buf, int mark, int pos, int lim, int cap, int off) argument
68 HeapShortBuffer(short[] buf, int mark, int pos, int lim, int cap, int off, boolean isReadOnly) argument
/libcore/ojluni/src/main/java/java/security/
H A DSignatureSpi.java123 * @param off the offset to start from in the array of bytes
129 protected abstract void engineUpdate(byte[] b, int off, int len) argument
/libcore/ojluni/src/main/java/java/util/jar/
H A DJarInputStream.java191 * @param off the start offset in the destination array <code>b</code>
196 * @exception IndexOutOfBoundsException If <code>off</code> is negative,
198 * <code>b.length - off</code>
204 public int read(byte[] b, int off, int len) throws IOException { argument
207 n = super.read(b, off, len);
212 jv.update(n, b, off, len, mev);

Completed in 193 milliseconds

123456