/libcore/ojluni/src/main/java/sun/net/www/http/ |
H A D | HttpCaptureInputStream.java | 69 public int read(byte[] b, int off, int len) throws IOException { argument 70 int ret = super.read(b, off, len); 72 capture.received(b[off+i]);
|
H A D | HttpCaptureOutputStream.java | 58 public void write(byte[] b, int off, int len) throws IOException { argument 59 for (int i = off; i < len; i++) { 62 out.write(b, off, len);
|
H A D | PosterOutputStream.java | 68 * starting at offset <code>off</code> to this output stream. 71 * @param off the start offset in the data. 74 public synchronized void write(byte b[], int off, int len) { argument 78 super.write (b, off, len);
|
/libcore/ojluni/src/main/java/sun/nio/ch/ |
H A D | ChannelInputStream.java | 95 public synchronized int read(byte[] bs, int off, int len) argument 98 if ((off < 0) || (off > bs.length) || (len < 0) || 99 ((off + len) > bs.length) || ((off + len) < 0)) { 107 bb.limit(Math.min(off + len, bb.capacity())); 108 bb.position(off);
|
/libcore/ojluni/src/main/java/sun/security/ssl/ |
H A D | AppOutputStream.java | 59 synchronized public void write(byte b[], int off, int len) argument 63 } else if (off < 0 || len < 0 || len > b.length - off) { 118 r.write(b, off, howmuch); 119 off += howmuch;
|
/libcore/ojluni/src/main/native/ |
H A D | Adler32.c | 51 jarray b, jint off, jint len) 55 adler = adler32(adler, buf + off, len); 63 jlong address, jint off, jint len) 67 adler = adler32(adler, buf + off, len); 50 Java_java_util_zip_Adler32_updateBytes(JNIEnv *env, jclass cls, jint adler, jarray b, jint off, jint len) argument 62 Java_java_util_zip_Adler32_updateByteBuffer(JNIEnv *env, jclass cls, jint adler, jlong address, jint off, jint len) argument
|
H A D | SocketInputStream.c | 56 jint off, jint len, jint timeout) 147 (*env)->SetByteArrayRegion(env, data, off, nread, (jbyte *)bufP); 54 SocketInputStream_socketRead0(JNIEnv *env, jobject this, jobject fdObj, jbyteArray data, jint off, jint len, jint timeout) argument
|
H A D | java_util_zip_CRC32.c | 50 jarray b, jint off, jint len) 54 crc = crc32(crc, buf + off, len); 49 CRC32_updateBytes(JNIEnv *env, jclass cls, jint crc, jarray b, jint off, jint len) argument
|
/libcore/luni/src/main/native/ |
H A D | ZipUtilities.cpp | 45 void NativeZipStream::setDictionary(JNIEnv* env, jbyteArray javaDictionary, int off, int len, argument 52 env->GetByteArrayRegion(javaDictionary, off, len, &dictionaryBytes[0]); 67 void NativeZipStream::setInput(JNIEnv* env, jbyteArray buf, jint off, jint len) { argument 76 env->GetByteArrayRegion(buf, off, len, &input[0]);
|
/libcore/luni/src/test/java/tests/java/security/ |
H A D | SecureClassLoaderTest.java | 231 public Class define(String name, byte[] b, int off, int len, argument 233 return defineClass(name, b, off, len, cs);
|
/libcore/ojluni/src/main/java/java/io/ |
H A D | Bits.java | 39 static boolean getBoolean(byte[] b, int off) { argument 40 return b[off] != 0; 43 static char getChar(byte[] b, int off) { argument 44 return (char) ((b[off + 1] & 0xFF) + 45 (b[off] << 8)); 48 static short getShort(byte[] b, int off) { argument 49 return (short) ((b[off + 1] & 0xFF) + 50 (b[off] << 8)); 53 static int getInt(byte[] b, int off) { argument 54 return ((b[off 60 getFloat(byte[] b, int off) argument 64 getLong(byte[] b, int off) argument 75 getDouble(byte[] b, int off) argument 84 putBoolean(byte[] b, int off, boolean val) argument 88 putChar(byte[] b, int off, char val) argument 93 putShort(byte[] b, int off, short val) argument 98 putInt(byte[] b, int off, int val) argument 105 putFloat(byte[] b, int off, float val) argument 109 putLong(byte[] b, int off, long val) argument 120 putDouble(byte[] b, int off, double val) argument [all...] |
H A D | ByteArrayInputStream.java | 157 * are copied into <code>b[off]</code> through 158 * <code>b[off+k-1]</code> in the manner performed 166 * @param off the start offset in the destination array <code>b</code> 172 * @exception IndexOutOfBoundsException If <code>off</code> is negative, 174 * <code>b.length - off</code> 176 public synchronized int read(byte b[], int off, int len) { argument 179 } else if (off < 0 || len < 0 || len > b.length - off) { 194 System.arraycopy(buf, pos, b, off, len);
|
H A D | DataOutput.java | 82 * is thrown. If <code>off</code> is negative, 83 * or <code>len</code> is negative, or <code>off+len</code> 88 * byte <code>b[off]</code> is written first, 89 * then <code>b[off+1]</code>, and so on; the 90 * last byte written is <code>b[off+len-1]</code>. 93 * @param off the start offset in the data. 97 void write(byte b[], int off, int len) throws IOException; argument
|
H A D | LineNumberInputStream.java | 121 * @param off the start offset of the data. 129 public int read(byte b[], int off, int len) throws IOException { argument 132 } else if ((off < 0) || (off > b.length) || (len < 0) || 133 ((off + len) > b.length) || ((off + len) < 0)) { 143 b[off] = (byte)c; 153 b[off + i] = (byte)c;
|
H A D | OutputStreamWriter.java | 201 * @param off Offset from which to start writing characters 206 public void write(char cbuf[], int off, int len) throws IOException { argument 207 se.write(cbuf, off, len); 214 * @param off Offset from which to start writing characters 219 public void write(String str, int off, int len) throws IOException { argument 220 se.write(str, off, len);
|
H A D | Reader.java | 149 * @param off Offset at which to start storing characters 157 abstract public int read(char cbuf[], int off, int len) throws IOException; argument
|
H A D | StringReader.java | 80 * @param off Offset at which to start writing characters 88 public int read(char cbuf[], int off, int len) throws IOException { argument 91 if ((off < 0) || (off > cbuf.length) || (len < 0) || 92 ((off + len) > cbuf.length) || ((off + len) < 0)) { 100 str.getChars(next, next + n, cbuf, off);
|
H A D | StringWriter.java | 84 * @param off Offset from which to start writing characters 87 public void write(char cbuf[], int off, int len) { argument 88 if ((off < 0) || (off > cbuf.length) || (len < 0) || 89 ((off + len) > cbuf.length) || ((off + len) < 0)) { 94 buf.append(cbuf, off, len); 108 * @param off Offset from which to start writing characters 111 public void write(String str, int off, int len) { argument 112 buf.append(str.substring(off, of [all...] |
H A D | Writer.java | 136 * @param off 145 abstract public void write(char cbuf[], int off, int len) throws IOException; argument 166 * @param off 173 * If <tt>off</tt> is negative, or <tt>len</tt> is negative, 174 * or <tt>off+len</tt> is negative or greater than the length 180 public void write(String str, int off, int len) throws IOException { argument 191 str.getChars(off, (off + len), cbuf, 0);
|
/libcore/ojluni/src/main/java/java/net/ |
H A D | SocketOutputStream.java | 83 * @param off the start offset in the data 87 private native void socketWrite0(FileDescriptor fd, byte[] b, int off, argument 94 * @param off the start offset in the data 98 private void socketWrite(byte b[], int off, int len) throws IOException { argument 100 if (len <= 0 || off < 0 || off + len > b.length) { 112 socketWrite0(fd, b, off, len); 152 * @param off the start offset in the data 156 public void write(byte b[], int off, int len) throws IOException { argument 157 socketWrite(b, off, le [all...] |
/libcore/ojluni/src/main/java/java/security/ |
H A D | SecureClassLoader.java | 120 * positions <code>off</code> through <code>off+len-1</code> 123 * @param off the start offset in <code>b</code> of the class data 129 * @exception IndexOutOfBoundsException if either <code>off</code> or 131 * <code>off+len</code> is greater than <code>b.length</code>. 139 byte[] b, int off, int len, 142 return defineClass(name, b, off, len, getProtectionDomain(cs)); 138 defineClass(String name, byte[] b, int off, int len, CodeSource cs) argument
|
/libcore/ojluni/src/main/java/java/util/jar/ |
H A D | JarOutputStream.java | 137 private static int get16(byte[] b, int off) { argument 138 return (b[off] & 0xff) | ((b[off+1] & 0xff) << 8); 145 private static void set16(byte[] b, int off, int value) { argument 146 b[off+0] = (byte)value; 147 b[off+1] = (byte)(value >> 8);
|
/libcore/ojluni/src/main/java/java/util/zip/ |
H A D | DeflaterOutputStream.java | 196 * @param off the start offset of the data 200 public void write(byte[] b, int off, int len) throws IOException { argument 204 if ((off | len | (off + len) | (b.length - (off + len))) < 0) { 210 def.setInput(b, off, len);
|
H A D | InflaterOutputStream.java | 212 * @param off starting offset of the compressed data within {@code b} 214 * @throws IndexOutOfBoundsException if {@code off} < 0, or if 215 * {@code len} < 0, or if {@code len} > {@code b.length - off} 221 public void write(byte[] b, int off, int len) throws IOException { argument 226 } else if (off < 0 || len < 0 || len > b.length - off) { 246 inf.setInput(b, off, part); 247 off += part;
|
/libcore/ojluni/src/main/java/sun/misc/ |
H A D | HexDumpEncoder.java | 91 protected void encodeAtom(OutputStream o, byte buf[], int off, int len) throws IOException { argument 92 thisLine[currentByte] = buf[off]; 93 hexDigit(pStream, buf[off]);
|