Searched defs:len (Results 1 - 25 of 205) sorted by relevance

123456789

/libcore/luni/src/main/native/
H A Dreadlink.cpp29 ssize_t len = readlink(path, &buf[0], buf.size()); local
30 if (len == -1) {
34 if (static_cast<size_t>(len) < buf.size()) {
36 result.assign(&buf[0], len);
/libcore/ojluni/src/main/java/java/io/
H A DFilterOutputStream.java101 * Writes <code>len</code> bytes from the specified
116 * @param len the number of bytes to write.
120 public void write(byte b[], int off, int len) throws IOException { argument
121 if ((off | len | (b.length - (len + off)) | (off + len)) < 0)
124 for (int i = 0 ; i < len ; i++) {
H A DOptionalDataException.java55 OptionalDataException(int len) { argument
57 length = len;
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 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 DFilterInputStream.java111 * Reads up to <code>len</code> bytes of data from this input stream
112 * into an array of bytes. If <code>len</code> is not zero, the method
116 * This method simply performs <code>in.read(b, off, len)</code>
121 * @param len the maximum number of bytes read.
127 * <code>len</code> is negative, or <code>len</code> is greater than
132 public int read(byte b[], int off, int len) throws IOException { argument
133 return in.read(b, off, len);
H A DFilterReader.java73 public int read(char cbuf[], int off, int len) throws IOException { argument
74 return in.read(cbuf, off, len);
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 DInputStream.java105 * Reads up to <code>len</code> bytes of data from the input stream into
107 * <code>len</code> bytes, but a smaller number may be read.
113 * <p> If <code>len</code> is zero, then no bytes are read and
121 * is, at most, equal to <code>len</code>. Let <i>k</i> be the number of
125 * <code>b[off+len-1]</code> unaffected.
128 * <code>b[off]</code> and elements <code>b[off+len]</code> through
131 * <p> The <code>read(b,</code> <code>off,</code> <code>len)</code> method
135 * the <code>read(b,</code> <code>off,</code> <code>len)</code> method. If
141 * until the requested amount of input data <code>len</code> has been read,
148 * @param len th
161 read(byte b[], int off, int len) argument
[all...]
H A DObjectInput.java77 * @param len the maximum number of bytes read
82 public int read(byte b[], int off, int len) throws IOException; argument
H A DObjectOutput.java71 * @param len the number of bytes that are written
74 public void write(byte b[], int off, int len) throws IOException; argument
H A DPipedOutputStream.java126 * Writes <code>len</code> bytes from the specified byte array
133 * @param len the number of bytes to write.
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)) {
146 } else if (len == 0) {
149 sink.receive(b, off, len);
H A DPipedWriter.java128 * Writes <code>len</code> characters from the specified character array
138 * @param len the number of characters to write.
144 public void write(char cbuf[], int off, int len) throws IOException { argument
147 } else if ((off | len | (off + len) | (cbuf.length - (off + len))) < 0) {
150 sink.receive(cbuf, off, len);
H A DSequenceInputStream.java175 * Reads up to <code>len</code> bytes of data from this input stream
176 * into an array of bytes. If <code>len</code> is not zero, the method
189 * @param len the maximum number of bytes read.
193 * <code>len</code> is negative, or <code>len</code> is greater than
197 public int read(byte b[], int off, int len) throws IOException { argument
202 } else if (off < 0 || len < 0 || len > b.length - off) {
204 } else if (len == 0) {
208 int n = in.read(b, off, len);
[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)) {
121 if (pos + len > count) {
122 len = count - pos;
124 if (len <= 0) {
128 int cnt = len;
[all...]
/libcore/ojluni/src/main/java/java/util/zip/
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 DAdler32.java62 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);
138 int len);
140 int off, int len);
137 updateBytes(int adler, byte[] b, int off, int len) argument
139 updateByteBuffer(int adler, long addr, int off, int len) argument
/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)</code>
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...]
/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/luni/src/main/java/libcore/util/
H A DHexEncoding.java39 public static char[] encode(byte[] data, int offset, int len) { argument
40 char[] result = new char[len * 2];
41 for (int i = 0; i < len; i++) {
76 for (int len = encoded.length; i < len; i += 2) {
/libcore/luni/src/test/java/tests/targets/security/
H A DMessageDigestTestMD2.java90 protected void engineUpdate(byte[] input, int offset, int len) { argument
/libcore/ojluni/src/main/java/java/security/
H A DDigestInputStream.java134 * <code>len</code> bytes from the input stream into the array
147 * @param len the maximum number of bytes to be read from the input
151 * <code>len</code> if the end of the stream is reached prior to
152 * reading <code>len</code> bytes. -1 is returned if no bytes were
160 public int read(byte[] b, int off, int len) throws IOException { argument
161 int result = in.read(b, off, len);
H A DDigestOutputStream.java137 * @param len the number of bytes of data to be updated and written
144 public void write(byte[] b, int off, int len) throws IOException { argument
146 digest.update(b, off, len);
148 out.write(b, off, len);
H A DMessageDigestSpi.java90 * @param len the number of bytes to use, starting at
93 protected abstract void engineUpdate(byte[] input, int offset, int len); argument
117 int len = input.remaining();
118 int n = JCAUtil.getTempArraySize(len);
122 while (len > 0) {
123 int chunk = Math.min(len, tempArray.length);
126 len -= chunk;
159 * @param len number of bytes within buf allotted for the digest.
173 protected int engineDigest(byte[] buf, int offset, int len) argument
177 if (len < diges
[all...]

Completed in 838 milliseconds

123456789