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

1234567891011>>

/openjdk10/langtools/test/tools/javac/T8050386/
H A DWrongStackframeGenerationTest2.java34 int len;
37 len = 1;
44 if (len == -1) {
45 len = 0;
/openjdk10/jdk/test/java/io/charStreams/
H A DABCOutputStream.java31 int len; field in class:ABCOutputStream
35 ABCOutputStream(int len) { argument
36 this.len = len;
40 if (count >= len)
50 public void write(byte buf[], int off, int len) throws IOException { argument
51 for (int i = off; i < off + len; i++)
56 if (len == 0)
58 else if (count < len)
60 len
[all...]
H A DABCInputStream.java31 int len; field in class:ABCInputStream
36 ABCInputStream(int len) { argument
37 this(len, len);
40 ABCInputStream(int len, int chunk) { argument
41 this.len = len;
59 if (count >= len)
67 public int read(byte buf[], int off, int len) { argument
68 int n = (len > chun
[all...]
H A DABCReader.java31 int len; field in class:ABCReader
35 ABCReader(int len) { argument
36 this.len = len;
40 if (count >= len)
53 public int read(char cbuf[], int off, int len) { argument
54 for (int i = off; i < off + len; i++) {
64 return len;
68 len = 0;
/openjdk10/jdk/test/java/nio/file/Files/
H A DNameLimits.java41 static Path generatePath(int len) { argument
42 if (len < MIN_PATH)
44 StringBuilder sb = new StringBuilder(len);
46 while (sb.length() < len) {
52 static boolean tryCreateFile(int len) throws IOException { argument
53 Path name = generatePath(len);
65 static boolean tryCreateDirectory(int len) throws IOException { argument
66 Path name = generatePath(len);
79 int len;
82 len
[all...]
/openjdk10/hotspot/test/compiler/c2/
H A DTest7179138_1.java48 int len = s.length();
51 len = len + len;
54 len = len + len;
57 len = len + len;
[all...]
H A DTest7179138_2.java48 int len = s.length();
51 len = len + len;
54 len = len + len;
57 len = len + len;
[all...]
/openjdk10/jdk/src/java.base/share/classes/sun/nio/cs/
H A DArrayEncoder.java36 int encode(char[] src, int off, int len, byte[] dst); argument
38 default int encodeFromLatin1(byte[] src, int sp, int len, byte[] dst) { argument
42 default int encodeFromUTF16(byte[] src, int sp, int len, byte[] dst) { argument
/openjdk10/jdk/src/java.base/share/classes/com/sun/crypto/provider/
H A DISO10126Padding.java55 * @param len the number of padding bytes to add
60 public void padWithLen(byte[] in, int off, int len) argument
66 if ((off + len) > in.length) {
70 byte paddingOctet = (byte) (len & 0xff);
71 byte[] padding = new byte[len - 1];
73 System.arraycopy(padding, 0, in, off, len - 1);
74 in[off + len - 1] = paddingOctet;
86 * @param len the length of the padded data
91 public int unpad(byte[] in, int off, int len) { argument
93 (len
119 padLength(int len) argument
[all...]
H A DPadding.java54 * @param len the number of padding bytes to add
59 void padWithLen(byte[] in, int off, int len) throws ShortBufferException; argument
69 * @param len the length of the data and their padding
74 int unpad(byte[] in, int off, int len); argument
79 * @param len the length of the data to pad
83 int padLength(int len); argument
H A DPKCS5Padding.java55 * @param len the number of padding bytes to add
60 public void padWithLen(byte[] in, int off, int len) argument
66 if ((off + len) > in.length) {
70 byte paddingOctet = (byte) (len & 0xff);
71 for (int i = 0; i < len; i++) {
85 * @param len the length of the padded data
90 public int unpad(byte[] in, int off, int len) { argument
92 (len == 0)) { // this can happen if input is really a padded buffer
96 byte lastByte = in[off + len - 1];
103 int start = off + len
124 padLength(int len) argument
[all...]
/openjdk10/jdk/src/java.base/share/classes/java/util/zip/
H A DCheckedInputStream.java68 * Reads into an array of bytes. If <code>len</code> is not zero, the method
73 * @param len the maximum number of bytes read
78 * <code>len</code> is negative, or <code>len</code> is greater than
82 public int read(byte[] buf, int off, int len) throws IOException { argument
83 len = in.read(buf, off, len);
84 if (len != -1) {
85 cksum.update(buf, off, len);
87 return len;
[all...]
/openjdk10/langtools/test/tools/javac/
H A DT7120266.java32 void test(int i, int len) { that(i < len, "oopmap"); } argument
/openjdk10/jdk/test/java/lang/String/
H A DIsEmpty.java38 int len = s.length();
41 if ((len != 0 && empty) || (len == 0 && !empty))
44 + ", length = " + len);
/openjdk10/jdk/src/java.base/share/classes/java/io/
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.
112 public synchronized int read(byte b[], int off, int len) { argument
115 } else if ((off < 0) || (off > b.length) || (len < 0) ||
116 ((off + len) > b.length) || ((off + len) < 0)) {
124 if (len > avail) {
125 len = avail;
127 if (len <= 0) {
130 buffer.getBytes(pos, pos + len,
[all...]
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...]
/openjdk10/jdk/src/java.base/share/classes/sun/security/ssl/
H A DHandshakeInStream.java87 int len;
91 len = count - pos;
92 if (len != 0) {
93 System.arraycopy(buf, pos, buf, 0, len);
96 count = len;
100 len = in.remaining() + count;
101 if (buf.length < len) {
102 byte[] newbuf = new byte[len];
111 count = len;
147 int len
174 verifyLength(int len) argument
[all...]
/openjdk10/jdk/src/java.base/share/classes/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...]
/openjdk10/jdk/src/java.security.jgss/windows/native/libw2k_lsa_auth/
H A DWindowsDirectory.c39 UINT len; local
41 len = GetSystemWindowsDirectory(lpPath, MAX_PATH);
43 len = GetWindowsDirectory(lpPath, MAX_PATH);
45 if (len) {
46 return (*env)->NewString(env, lpPath, len);
/openjdk10/jdk/test/java/util/TimSort/
H A DArrayBuilder.java32 public Object[] build(int len) {
33 Integer[] result = new Integer[len];
34 for (int i = 0; i < len; i++)
41 public Object[] build(int len) {
42 Integer[] result = new Integer[len];
43 for (int i = 0; i < len; i++)
44 result[i] = len - i;
50 public Object[] build(int len) {
51 Integer[] result = new Integer[len];
52 for (int i = 0; i < len;
127 build(int len) argument
[all...]
/openjdk10/jdk/src/java.base/share/native/libjava/
H A Djio.c42 int len; local
46 len = jio_vsnprintf(str, count, fmt, args);
49 return len;
58 int len; local
62 len = jio_vfprintf(fp, fmt, args);
65 return len;
/openjdk10/jdk/src/java.base/share/classes/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
/openjdk10/jdk/test/sun/nio/cs/
H A DTestTrailingEscapesISO2022JP.java37 int len;
44 while ( ( len = in.read( b, 0, b.length ) ) != -1 ) {
45 out.write(b, 0, len);
57 while ( ( len = inR.read( c, 0, c.length ) ) != -1 ) {
58 System.out.println(len);
59 if (len == 0)
/openjdk10/nashorn/test/script/basic/
H A DJDK-8039387.js36 var len = list.length
37 print("length = " + len)
38 for (var i = 0; i < len; i++)
/openjdk10/jdk/src/java.base/unix/classes/sun/nio/ch/
H A DSocketDispatcher.java38 int read(FileDescriptor fd, long address, int len) throws IOException { argument
39 return FileDispatcherImpl.read0(fd, address, len);
42 long readv(FileDescriptor fd, long address, int len) throws IOException { argument
43 return FileDispatcherImpl.readv0(fd, address, len);
46 int write(FileDescriptor fd, long address, int len) throws IOException { argument
47 return FileDispatcherImpl.write0(fd, address, len);
50 long writev(FileDescriptor fd, long address, int len) throws IOException { argument
51 return FileDispatcherImpl.writev0(fd, address, len);

Completed in 132 milliseconds

1234567891011>>