Searched refs:off (Results 1 - 25 of 144) sorted by relevance

123456

/libcore/ojluni/src/main/java/java/io/
H A DBits.java39 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 DOutputStream.java80 * 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 DFilterWriter.java72 * @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 DStringWriter.java84 * @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 DFilterOutputStream.java102 * <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 DLineNumberInputStream.java122 * @param off the start offset of the data.
130 public int read(byte b[], int off, int len) throws IOException { argument
133 } else if ((off < 0) || (off > b.length) || (len < 0) ||
134 ((off + len) > b.length) || ((off + len) < 0)) {
144 b[off] = (byte)c;
154 b[off + i] = (byte)c;
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 DPipedOutputStream.java127 * 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 DStringBufferInputStream.java105 * @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)) {
132 b[off++] = (byte)s.charAt(pos++);
H A DStringReader.java80 * @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 DArrayDecoder.java34 int decode(byte[] src, int off, int len, char[] dst); argument
H A DArrayEncoder.java34 int encode(char[] src, int off, int len, byte[] dst); argument
/libcore/ojluni/src/main/java/java/util/zip/
H A DInflater.java81 private int off, len; field in class:Inflater
121 * @param off the start offset of the input data
125 public void setInput(byte[] b, int off, int len) { argument
129 if (off < 0 || len < 0 || off > b.length - len) {
134 this.off = off;
156 * @param off the start offset of the data
161 public void setDictionary(byte[] b, int off, int len) { argument
165 if (off <
250 inflate(byte[] b, int off, int len) argument
412 setDictionary(long addr, byte[] b, int off, int len) argument
414 inflateBytes(long addr, byte[] b, int off, int len) argument
[all...]
H A DChecksum.java45 * @param off the start offset of the data
48 public void update(byte[] b, int off, int len); argument
H A DDeflater.java80 private int off, len; field in class:Deflater
197 * @param off the start offset of the data
201 public void setInput(byte[] b, int off, int len) { argument
205 if (off < 0 || len < 0 || off > b.length - len) {
210 this.off = off;
232 * @param off the start offset of the data
237 public void setDictionary(byte[] b, int off, int len) { argument
241 if (off <
367 deflate(byte[] b, int off, int len) argument
434 deflate(byte[] b, int off, int len, int flush) argument
573 setDictionary(long addr, byte[] b, int off, int len) argument
574 deflateBytes(long addr, byte[] b, int off, int len, int flush) argument
[all...]
H A DZipUtils.java129 public static final int get16(byte b[], int off) { argument
130 return Byte.toUnsignedInt(b[off]) | (Byte.toUnsignedInt(b[off+1]) << 8);
137 public static final long get32(byte b[], int off) { argument
138 return (get16(b, off) | ((long)get16(b, off+2) << 16)) & 0xffffffffL;
145 public static final long get64(byte b[], int off) { argument
146 return get32(b, off) | (get32(b, off+4) << 32);
H A DCheckedOutputStream.java68 * @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 DAdler32.java67 * if {@code off} is negative, or {@code len} is negative,
68 * or {@code off+len} is greater than the length of the
71 public void update(byte[] b, int off, int len) { argument
75 if (off < 0 || len < 0 || off > b.length - len) {
78 adler = updateBytes(adler, b, off, len);
138 private native static int updateBytes(int adler, byte[] b, int off, argument
141 int off, int len);
140 updateByteBuffer(int adler, long addr, int off, int len) argument
H A DCRC32.java65 * if {@code off} is negative, or {@code len} is negative,
66 * or {@code off+len} is greater than the length of the
69 public void update(byte[] b, int off, int len) { argument
73 if (off < 0 || len < 0 || off > b.length - len) {
76 crc = updateBytes(crc, b, off, len);
135 private native static int updateBytes(int crc, byte[] b, int off, int len); argument
138 int off, int len);
137 updateByteBuffer(int adler, long addr, int off, int len) argument
/libcore/ojluni/src/main/java/sun/net/
H A DTelnetInputStream.java133 * 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/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...]
H A DSocketOutputStream.java82 * @param off the start offset in the data
86 private native void socketWrite0(FileDescriptor fd, byte[] b, int off, argument
93 * @param off the start offset in the data
97 private void socketWrite(byte b[], int off, int len) throws IOException { argument
98 if (len <= 0 || off < 0 || len > b.length - off) {
103 + " off == " + off + " buffer length == " + b.length);
109 socketWrite0(fd, b, off, len);
148 * @param off th
152 write(byte b[], int off, int len) argument
[all...]
/libcore/ojluni/src/main/java/java/util/jar/
H A DJarOutputStream.java137 private static int get16(byte[] b, int off) { argument
138 return Byte.toUnsignedInt(b[off]) | ( Byte.toUnsignedInt(b[off+1]) << 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/sun/nio/ch/
H A DChannelInputStream.java94 public synchronized int read(byte[] bs, int off, int len) argument
97 if ((off < 0) || (off > bs.length) || (len < 0) ||
98 ((off + len) > bs.length) || ((off + len) < 0)) {
106 bb.limit(Math.min(off + len, bb.capacity()));
107 bb.position(off);
/libcore/ojluni/src/main/native/
H A Dio_util.c68 outOfBounds(JNIEnv *env, jint off, jint len, jbyteArray array) { argument
69 return ((off < 0) ||
73 ((*env)->GetArrayLength(env, array) - off < len));
78 jint off, jint len, jfieldID fid)
90 if (outOfBounds(env, off, len, bytes)) {
114 (*env)->SetByteArrayRegion(env, bytes, off, nread, (jbyte *)buf);
154 jint off, jint len, jboolean append, jfieldID fid)
166 if (outOfBounds(env, off, len, bytes)) {
183 (*env)->GetByteArrayRegion(env, bytes, off, len, (jbyte *)buf);
186 off
77 readBytes(JNIEnv *env, jobject this, jbyteArray bytes, jint off, jint len, jfieldID fid) argument
153 writeBytes(JNIEnv *env, jobject this, jbyteArray bytes, jint off, jint len, jboolean append, jfieldID fid) argument
[all...]

Completed in 1769 milliseconds

123456