/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 | OutputStream.java | 80 * starting at offset <code>off</code> to this output stream. 81 * The general contract for <code>write(b, off, len)</code> is that 83 * output stream in order; element <code>b[off]</code> is the first 84 * byte written and <code>b[off+len-1]</code> is the last byte written 95 * If <code>off</code> is negative, or <code>len</code> is negative, or 96 * <code>off+len</code> is greater than the length of the array 100 * @param off the start offset in the data. 106 public void write(byte b[], int off, int len) throws IOException { argument 109 } else if ((off < 0) || (off > [all...] |
H A D | StringBufferInputStream.java | 105 * @param off the start offset of the data. 111 public synchronized int read(byte b[], int off, int len) { argument 114 } else if ((off < 0) || (off > b.length) || (len < 0) || 115 ((off + len) > b.length) || ((off + len) < 0)) { 130 b[off++] = (byte)s.charAt(pos++);
|
H A D | FilterWriter.java | 72 * @param off Offset from which to start reading characters 77 public void write(char cbuf[], int off, int len) throws IOException { argument 78 out.write(cbuf, off, len); 85 * @param off Offset from which to start reading characters 90 public void write(String str, int off, int len) throws IOException { argument 91 out.write(str, off, len);
|
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 | FilterOutputStream.java | 102 * <code>byte</code> array starting at offset <code>off</code> to 115 * @param off the start offset in the data. 120 public void write(byte b[], int off, int len) throws IOException { argument 121 if ((off | len | (b.length - (len + off)) | (off + len)) < 0) 125 write(b[off + i]);
|
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 | BufferedWriter.java | 168 * @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 D | PipedOutputStream.java | 127 * starting at offset <code>off</code> to this piped output stream. 132 * @param off the start offset in the data. 138 public void write(byte b[], int off, int len) throws IOException { argument 143 } else if ((off < 0) || (off > b.length) || (len < 0) || 144 ((off + len) > b.length) || ((off + len) < 0)) { 149 sink.receive(b, off, len);
|
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);
|
/libcore/ojluni/src/main/java/sun/nio/cs/ |
H A D | ArrayDecoder.java | 34 int decode(byte[] src, int off, int len, char[] dst); argument
|
H A D | ArrayEncoder.java | 34 int encode(char[] src, int off, int len, byte[] dst); argument
|
/libcore/ojluni/src/main/java/java/util/zip/ |
H A D | CRC32.java | 58 public void update(byte[] b, int off, int len) { argument 62 if (off < 0 || len < 0 || off > b.length - len) { 65 crc = updateBytes(crc, b, off, len); 92 private native static int updateBytes(int crc, byte[] b, int off, int len); argument
|
H A D | Inflater.java | 81 private int off, len; field in class:Inflater 119 * @param off the start offset of the input data 123 public void setInput(byte[] b, int off, int len) { argument 127 if (off < 0 || len < 0 || off > b.length - len) { 132 this.off = off; 154 * @param off the start offset of the data 159 public void setDictionary(byte[] b, int off, int len) { argument 163 if (off < 248 inflate(byte[] b, int off, int len) argument 407 setDictionary(long addr, byte[] b, int off, int len) argument 409 inflateBytes(long addr, byte[] b, int off, int len) argument [all...] |
H A D | Checksum.java | 45 * @param off the start offset of the data 48 public void update(byte[] b, int off, int len); argument
|
H A D | Deflater.java | 80 private int off, len; field in class:Deflater 195 * @param off the start offset of the data 199 public void setInput(byte[] b, int off, int len) { argument 203 if (off < 0 || len < 0 || off > b.length - len) { 208 this.off = off; 230 * @param off the start offset of the data 235 public void setDictionary(byte[] b, int off, int len) { argument 239 if (off < 351 deflate(byte[] b, int off, int len) argument 418 deflate(byte[] b, int off, int len, int flush) argument 555 setDictionary(long addr, byte[] b, int off, int len) argument 556 deflateBytes(long addr, byte[] b, int off, int len, int flush) argument [all...] |
H A D | CheckedOutputStream.java | 68 * @param off the start offset of the data 72 public void write(byte[] b, int off, int len) throws IOException { argument 73 out.write(b, off, len); 74 cksum.update(b, off, len);
|
H A D | Adler32.java | 62 public void update(byte[] b, int off, int len) { argument 66 if (off < 0 || len < 0 || off > b.length - len) { 69 adler = updateBytes(adler, b, off, len); 137 private native static int updateBytes(int adler, byte[] b, int off, argument 140 int off, int len); 139 updateByteBuffer(int adler, long addr, int off, int len) argument
|
H A D | ZipInputStream.java | 175 * @param off the start offset in the destination array <code>b</code> 180 * @exception IndexOutOfBoundsException if <code>off</code> is negative, 182 * <code>b.length - off</code> 186 public int read(byte[] b, int off, int len) throws IOException { argument 188 if (off < 0 || len < 0 || off > b.length - len) { 199 len = super.read(b, off, len); 205 crc.update(b, off, len); 220 len = in.read(b, off, len); 224 crc.update(b, off, le 431 readFully(byte[] b, int off, int len) argument 446 get16(byte b[], int off) argument 454 get32(byte b[], int off) argument 462 get64(byte b[], int off) argument [all...] |
/libcore/ojluni/src/main/java/sun/net/ |
H A D | TelnetInputStream.java | 133 * Read into a byte array at offset <i>off</i> for length <i>length</i> 136 public int read(byte bytes[], int off, int length) throws IOException { argument 138 return super.read(bytes, off, length); 141 int offStart = off; 147 bytes[off++] = (byte)c; 149 return (off > offStart) ? off - offStart : -1;
|
/libcore/dex/src/main/java/com/android/dex/ |
H A D | TableOfContents.java | 71 readMap(dex.open(mapList.off)); 96 mapList.off = headerIn.readInt(); 97 if (mapList.off == 0) { 101 stringIds.off = headerIn.readInt(); 103 typeIds.off = headerIn.readInt(); 105 protoIds.off = headerIn.readInt(); 107 fieldIds.off = headerIn.readInt(); 109 methodIds.off = headerIn.readInt(); 111 classDefs.off = headerIn.readInt(); 127 || (section.off ! 215 public int off = -1; field in class:TableOfContents.Section [all...] |
/libcore/ojluni/src/main/java/sun/net/www/http/ |
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/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/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/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);
|