Searched refs:len (Results 1 - 25 of 328) sorted by relevance

1234567891011>>

/libcore/benchmarks/src/benchmarks/
H A DSystemArrayCopyBenchmark.java29 final int len = arrayLength;
30 char[] src = new char[len];
31 char[] dst = new char[len];
33 System.arraycopy(src, 0, dst, 0, len);
38 final int len = arrayLength;
39 byte[] src = new byte[len];
40 byte[] dst = new byte[len];
42 System.arraycopy(src, 0, dst, 0, len);
47 final int len = arrayLength;
48 short[] src = new short[len];
[all...]
/libcore/ojluni/src/main/java/java/util/zip/
H A DCheckedInputStream.java67 * Reads into an array of bytes. If <code>len</code> is not zero, the method
72 * @param len the maximum number of bytes read
77 * <code>len</code> is negative, or <code>len</code> is greater than
81 public int read(byte[] buf, int off, int len) throws IOException { argument
82 len = in.read(buf, off, len);
83 if (len != -1) {
84 cksum.update(buf, off, len);
86 return len;
[all...]
H A DInflater.java88 private int off, len; field in class:Inflater
130 * @param len the length of the input data
133 public void setInput(byte[] b, int off, int len) { argument
137 if (off < 0 || len < 0 || off > b.length - len) {
143 this.len = len;
165 * @param len the length of the data
169 public void setDictionary(byte[] b, int off, int len) { argument
173 if (off < 0 || len <
258 inflate(byte[] b, int off, int len) argument
420 setDictionary(long addr, byte[] b, int off, int len) argument
422 inflateBytes(long addr, byte[] b, int off, int len) argument
[all...]
H A DZipInputStream.java174 * If <code>len</code> is not zero, the method
179 * @param len the maximum number of bytes read
184 * <code>len</code> is negative, or <code>len</code> is greater than
189 public int read(byte[] b, int off, int len) throws IOException { argument
191 if (off < 0 || len < 0 || off > b.length - len) {
193 } else if (len == 0) {
202 len = super.read(b, off, len);
412 readFully(byte[] b, int off, int len) argument
[all...]
H A DChecksum.java46 * @param len the number of bytes to use for the update
48 public void update(byte[] b, int off, int len); argument
H A DInflaterInputStream.java57 protected int len; field in class:InflaterInputStream
131 * Reads uncompressed data into an array of bytes. If <code>len</code> is not
136 * @param len the maximum number of bytes read
141 * <code>len</code> is negative, or <code>len</code> is greater than
146 public int read(byte[] b, int off, int len) throws IOException { argument
150 } else if (off < 0 || len < 0 || len > b.length - off) {
152 } else if (len == 0) {
157 while ((n = inf.inflate(b, off, len))
[all...]
H A DDeflater.java87 private int off, len; field in class:Deflater
206 * @param len the length of the data
209 public void setInput(byte[] b, int off, int len) { argument
213 if (off < 0 || len < 0 || off > b.length - len) {
219 this.len = len;
241 * @param len the length of the data
245 public void setDictionary(byte[] b, int off, int len) { argument
249 if (off < 0 || len <
375 deflate(byte[] b, int off, int len) argument
442 deflate(byte[] b, int off, int len, int flush) argument
581 setDictionary(long addr, byte[] b, int off, int len) argument
582 deflateBytes(long addr, byte[] b, int off, int len, int flush) argument
[all...]
/libcore/ojluni/src/main/java/javax/crypto/spec/
H A DIvParameterSpec.java57 * Creates an IvParameterSpec object using the first <code>len</code>
62 * <code>iv[offset]</code> and <code>iv[offset+len-1]</code> inclusive.
64 * @param iv the buffer with the IV. The first <code>len</code>
69 * @param len the number of IV bytes.
71 * or {@code (iv.length - offset < len)}
73 * or <code>len</code> index bytes outside the <code>iv</code>.
75 public IvParameterSpec(byte[] iv, int offset, int len) { argument
79 if (iv.length - offset < len) {
83 if (len < 0) {
84 throw new ArrayIndexOutOfBoundsException("len i
[all...]
H A DGCMParameterSpec.java100 * @param len the number of IV bytes
103 * {@code src} is null, {@code len} or {@code offset} is negative,
104 * or the sum of {@code offset} and {@code len} is greater than the
107 public GCMParameterSpec(int tLen, byte[] src, int offset, int len) { argument
108 init(tLen, src, offset, len);
114 private void init(int tLen, byte[] src, int offset, int len) { argument
122 if ((src == null) ||(len < 0) || (offset < 0)
123 || ((len + offset) > src.length)) {
127 iv = new byte[len];
128 System.arraycopy(src, offset, iv, 0, len);
[all...]
/libcore/ojluni/src/main/java/java/io/
H A DOutputStream.java79 * Writes <code>len</code> bytes from the specified byte array
81 * The general contract for <code>write(b, off, len)</code> is that
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
101 * @param len the number of bytes to write.
106 public void write(byte b[], int off, int len) throws IOException { argument
109 } else if ((off < 0) || (off > b.length) || (len < 0) ||
110 ((off + len) > b.length) || ((off + len) <
[all...]
H A DOptionalDataException.java55 OptionalDataException(int len) { argument
57 length = len;
H A DBufferedOutputStream.java101 * Writes <code>len</code> bytes from the specified byte array
113 * @param len the number of bytes to write.
116 public synchronized void write(byte b[], int off, int len) throws IOException { argument
117 if (len >= buf.length) {
122 out.write(b, off, len);
125 if (len > buf.length - count) {
128 System.arraycopy(b, off, buf, count, len);
129 count += len;
H A DByteArrayInputStream.java148 * Reads up to <code>len</code> bytes of data into an array of bytes
154 * <code>len</code> and <code>count-pos</code>.
167 * @param len the maximum number of bytes read.
173 * <code>len</code> is negative, or <code>len</code> is greater than
176 public synchronized int read(byte b[], int off, int len) { argument
179 } else if (off < 0 || len < 0 || len > b.length - off) {
188 if (len > avail) {
189 len
[all...]
H A DFilterWriter.java73 * @param len Number of characters to be written
77 public void write(char cbuf[], int off, int len) throws IOException { argument
78 out.write(cbuf, off, len);
86 * @param len Number of characters to be written
90 public void write(String str, int off, int len) throws IOException { argument
91 out.write(str, off, len);
H A DPushbackInputStream.java143 * Reads up to <code>len</code> bytes of data from this input stream into
145 * that, if fewer than <code>len</code> bytes have been read then it
146 * reads from the underlying input stream. If <code>len</code> is not zero, the method
152 * @param len the maximum number of bytes read.
158 * <code>len</code> is negative, or <code>len</code> is greater than
165 public int read(byte[] b, int off, int len) throws IOException { argument
169 } else if (off < 0 || len < 0 || len > b.length - off) {
171 } else if (len
229 unread(byte[] b, int off, int len) argument
[all...]
H A DStringBufferInputStream.java96 * Reads up to <code>len</code> bytes of data from this input stream
106 * @param len the maximum number of bytes read.
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)) {
123 if (len > avail) {
124 len = avail;
127 if (len <= 0) {
131 int cnt = len;
[all...]
/libcore/ojluni/src/main/java/sun/nio/ch/
H A DNativeDispatcher.java38 abstract int read(FileDescriptor fd, long address, int len) argument
49 int pread(FileDescriptor fd, long address, int len, long position) argument
55 abstract long readv(FileDescriptor fd, long address, int len) argument
58 abstract int write(FileDescriptor fd, long address, int len) argument
61 int pwrite(FileDescriptor fd, long address, int len, long position) argument
67 abstract long writev(FileDescriptor fd, long address, int len) argument
H A DSocketDispatcher.java40 int read(FileDescriptor fd, long address, int len) throws IOException { argument
43 return FileDispatcherImpl.read0(fd, address, len);
46 long readv(FileDescriptor fd, long address, int len) throws IOException { argument
49 return FileDispatcherImpl.readv0(fd, address, len);
52 int write(FileDescriptor fd, long address, int len) throws IOException { argument
55 return FileDispatcherImpl.write0(fd, address, len);
58 long writev(FileDescriptor fd, long address, int len) throws IOException { argument
61 return FileDispatcherImpl.writev0(fd, address, len);
H A DDatagramDispatcher.java40 int read(FileDescriptor fd, long address, int len) throws IOException { argument
42 return read0(fd, address, len);
45 long readv(FileDescriptor fd, long address, int len) throws IOException { argument
47 return readv0(fd, address, len);
50 int write(FileDescriptor fd, long address, int len) throws IOException { argument
52 return write0(fd, address, len);
55 long writev(FileDescriptor fd, long address, int len) throws IOException { argument
57 return writev0(fd, address, len);
68 static native int read0(FileDescriptor fd, long address, int len) argument
71 static native long readv0(FileDescriptor fd, long address, int len) argument
74 write0(FileDescriptor fd, long address, int len) argument
77 writev0(FileDescriptor fd, long address, int len) argument
[all...]
/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/
H A DStack.java82 int len = size();
85 removeElementAt(len - 1);
99 int len = size();
101 if (len == 0)
103 return elementAt(len - 1);
/libcore/support/src/test/java/tests/support/
H A DSupport_ASimpleInputStream.java20 public int len; field in class:Support_ASimpleInputStream
37 len = buf.length;
42 len = input.length;
43 buf = new byte[len];
44 System.arraycopy(input, 0, buf, 0, len);
59 return len - pos;
67 if (pos < len) {
/libcore/ojluni/src/main/java/sun/util/locale/
H A DLocaleUtils.java55 int len = s1.length();
56 if (len != s2.length()) {
60 for (int i = 0; i < len; i++) {
89 int len = s.length();
91 for (; idx < len; idx++) {
96 if (idx == len) {
100 char[] buf = new char[len];
101 for (int i = 0; i < len; i++) {
109 int len = s.length();
111 for (; idx < len; id
[all...]
/libcore/ojluni/src/main/java/sun/security/util/
H A DDerInputBuffer.java49 DerInputBuffer(byte[] buf, int offset, int len) { argument
50 super(buf, offset, len);
65 int len = available();
66 if (len <= 0)
68 byte[] retval = new byte[len];
70 System.arraycopy(buf, pos, retval, 0, len);
127 int len = available();
130 for (int i = 0; i < len; i++)
135 void truncate(int len) throws IOException { argument
136 if (len > availabl
149 getBigInteger(int len, boolean makePositive) argument
183 getInteger(int len) argument
199 getBitString(int len) argument
261 getUTCTime(int len) argument
276 getGeneralizedTime(int len) argument
293 getTime(int len, boolean generalized) argument
[all...]

Completed in 2743 milliseconds

1234567891011>>