/openjdk10/jdk/src/java.naming/share/classes/com/sun/jndi/ldap/ |
H A D | BerEncoder.java | 111 int len = getDataLen(); 112 byte[] trimBuf = new byte[len]; 114 System.arraycopy(getBuf(), 0, trimBuf, 0, len); 159 int len = offset - start; 161 if (len <= 0x7f) { 162 shiftSeqData(start, len, -2); 163 buf[seqOffset[curSeqIndex]] = (byte) len; 164 } else if (len <= 0xff) { 165 shiftSeqData(start, len, -1); 167 buf[seqOffset[curSeqIndex] + 1] = (byte) len; 187 shiftSeqData(int start, int len, int shift) argument 365 encodeLength(int len) argument 415 ensureFreeBytes(int len) argument [all...] |
/openjdk10/jdk/src/java.security.jgss/share/classes/sun/security/jgss/ |
H A D | GSSHeader.java | 107 // debug (" len starting with oid=" + length); 168 // Subtract maximum len bytes 175 * space. The range of the len field that we allow is 198 private int getLenFieldSize(int len) { argument 200 if (len < 128) { 202 } else if (len < (1 << 8)) { 204 } else if (len < (1 << 16)) { 206 } else if (len < (1 << 24)) { 283 * @params len the length of the attribute. 289 private int putLength(int len, OutputStrea argument 330 getHexBytes(byte[] bytes, int len) argument [all...] |
/openjdk10/jdk/src/java.base/share/classes/java/util/zip/ |
H A D | Deflater.java | 79 private int off, len; field in class:Deflater 197 * @param len the length of the data 200 public void setInput(byte[] b, int off, int len) { argument 204 if (off < 0 || len < 0 || off > b.length - len) { 210 this.len = len; 232 * @param len the length of the data 236 public void setDictionary(byte[] b, int off, int len) { argument 240 if (off < 0 || len < 366 deflate(byte[] b, int off, int len) argument 436 deflate(byte[] b, int off, int len, int flush) argument 578 setDictionary(long addr, byte[] b, int off, int len) argument 579 deflateBytes(long addr, byte[] b, int off, int len, int flush) argument [all...] |
H A D | GZIPOutputStream.java | 140 * @param len the length of the data 143 public synchronized void write(byte[] buf, int off, int len) argument 146 super.write(buf, off, len); 147 crc.update(buf, off, len); 160 int len = def.deflate(buf, 0, buf.length); 161 if (def.finished() && len <= buf.length - TRAILER_SIZE) { 163 writeTrailer(buf, len); 164 len = len + TRAILER_SIZE; 165 out.write(buf, 0, len); [all...] |
H A D | CRC32.java | 67 * if {@code off} is negative, or {@code len} is negative, or 68 * {@code off+len} is negative or greater than the length of 72 public void update(byte[] b, int off, int len) { argument 76 if (off < 0 || len < 0 || off > b.length - len) { 79 crc = updateBytes(crc, b, off, len); 133 private static int updateBytes(int crc, byte[] b, int off, int len) { argument 134 updateBytesCheck(b, off, len); 135 return updateBytes0(crc, b, off, len); 139 private static native int updateBytes0(int crc, byte[] b, int off, int len); argument 141 updateBytesCheck(byte[] b, int off, int len) argument 158 updateByteBuffer(int alder, long addr, int off, int len) argument 165 updateByteBuffer0(int alder, long addr, int off, int len) argument [all...] |
/openjdk10/jdk/src/java.instrument/windows/native/libinstrument/ |
H A D | FileSystemSupport_md.c | 67 int len = (int)(last - path); local 68 char* str = (char*)malloc(len+1); 69 if (len > 0) { 70 memcpy(str, path, len); 72 str[len] = '\0'; 94 static int normalizePrefix(const char* path, int len, char* sb, int* sbLen) { argument 97 while ((src < len) && isSlash(path[src])) src++; 98 if ((len - src >= 2) 110 if ((len >= 2) 126 * Normalize the given pathname, whose length is len, startin 129 normalizePath(const char* path, int len, int off) argument 226 int parentEnd, childStart, len; local 306 int len = (int)strlen(path); local [all...] |
/openjdk10/jdk/src/java.base/share/classes/java/io/ |
H A D | PushbackReader.java | 99 * @param len Maximum number of characters to read 107 public int read(char cbuf[], int off, int len) throws IOException { argument 111 if (len <= 0) { 112 if (len < 0) { 121 if (len < avail) 122 avail = len; 126 len -= avail; 128 if (len > 0) { 129 len = super.read(cbuf, off, len); 175 unread(char cbuf[], int off, int len) argument [all...] |
H A D | CharArrayReader.java | 114 * @param len Maximum number of characters to read 121 public int read(char b[], int off, int len) throws IOException { argument 124 if ((off < 0) || (off > b.length) || (len < 0) || 125 ((off + len) > b.length) || ((off + len) < 0)) { 127 } else if (len == 0) { 136 if (len > avail) { 137 len = avail; 139 if (len <= 0) { 142 System.arraycopy(buf, pos, b, off, len); [all...] |
H A D | StringWriter.java | 85 * @param len Number of characters to write 88 * If {@code off} is negative, or {@code len} is negative, 89 * or {@code off + len} is negative or greater than the length 92 public void write(char cbuf[], int off, int len) { argument 93 if ((off < 0) || (off > cbuf.length) || (len < 0) || 94 ((off + len) > cbuf.length) || ((off + len) < 0)) { 96 } else if (len == 0) { 99 buf.append(cbuf, off, len); 114 * @param len Numbe 121 write(String str, int off, int len) argument [all...] |
/openjdk10/jdk/test/sun/net/www/protocol/http/ |
H A D | ResponseCacheStream.java | 111 int len; 114 len = is.read(b, 0, 10); 116 len = 0; 119 len = is.read(b, count, 40 - count); 120 if (len > 0) 121 count += len; 122 } while (len > 0); 124 len = is.read(b2, 0, 20); 126 len = is.read(b, count, 10); 127 count += len; [all...] |
/openjdk10/jdk/src/java.desktop/share/classes/javax/imageio/stream/ |
H A D | MemoryCacheImageInputStream.java | 93 public int read(byte[] b, int off, int len) throws IOException { argument 99 if (off < 0 || len < 0 || off + len > b.length || off + len < 0) { 101 ("off < 0 || len < 0 || off+len > b.length || off+len < 0!"); 106 if (len == 0) { 110 long pos = cache.loadFromStream(stream, streamPos+len); 112 len [all...] |
H A D | ImageOutputStreamImpl.java | 54 public abstract void write(byte b[], int off, int len) throws IOException; argument 131 int len = s.length(); 132 for (int i = 0 ; i < len ; i++) { 138 int len = s.length(); 140 byte[] b = new byte[len*2]; 143 for (int i = 0; i < len ; i++) { 149 for (int i = 0; i < len ; i++) { 156 write(b, 0, len*2); 201 public void writeShorts(short[] s, int off, int len) throws IOException { argument 202 // Fix 4430357 - if off + len < 227 writeChars(char[] c, int off, int len) argument 253 writeInts(int[] i, int off, int len) argument 283 writeLongs(long[] l, int off, int len) argument 321 writeFloats(float[] f, int off, int len) argument 351 writeDoubles(double[] d, int off, int len) argument [all...] |
/openjdk10/jdk/test/sun/misc/ |
H A D | CopyMemory.java | 50 private static void set(byte[] b, int ofs, int len, int value) { argument 51 for (int i = 0; i < len; i++) { 56 private static void check(byte[] b, int ofs, int len, int value) { argument 57 for (int i = 0; i < len; i++) { 65 private static void set(Unsafe unsafe, long addr, int ofs, int len, int value) { argument 66 for (int i = 0; i < len; i++) { 71 private static void check(Unsafe unsafe, long addr, int ofs, int len, int value) { argument 72 for (int i = 0; i < len; i++) { 97 int len = random.nextInt(BUFFER_SIZE / 2); 99 unsafe.setMemory(b, Unsafe.ARRAY_BYTE_BASE_OFFSET + ofs, len, (byt [all...] |
/openjdk10/hotspot/src/share/vm/ci/ |
H A D | ciTypeArray.hpp | 42 ciTypeArray(ciKlass* klass, int len) : ciArray(klass, len) {} argument
|
H A D | ciObjArray.hpp | 42 ciObjArray(ciKlass* klass, int len) : ciArray(klass, len) {} argument
|
/openjdk10/corba/src/java.corba/share/classes/com/sun/corba/se/impl/io/ |
H A D | OptionalDataException.java | 51 OptionalDataException(int len) { argument 53 length = len;
|
/openjdk10/jdk/src/java.desktop/share/classes/javax/swing/text/html/ |
H A D | BRView.java | 50 public int getBreakWeight(int axis, float pos, float len) { argument 54 return super.getBreakWeight(axis, pos, len);
|
/openjdk10/jdk/src/java.desktop/share/classes/sun/java2d/marlin/ |
H A D | OffHeapArray.java | 53 OffHeapArray(final Object parent, final long len) { argument 55 this.address = UNSAFE.allocateMemory(len); 56 this.length = len; 61 + len + " to addr = " + this.address); 70 * @param len new array length 73 void resize(final long len) { argument 75 this.address = UNSAFE.reallocateMemory(address, len); 76 this.length = len; 80 + len + " to addr = " + this.address);
|
/openjdk10/jdk/src/java.base/share/classes/java/security/ |
H A D | MessageDigestSpi.java | 91 * @param len the number of bytes to use, starting at 94 protected abstract void engineUpdate(byte[] input, int offset, int len); argument 118 int len = input.remaining(); 119 int n = JCAUtil.getTempArraySize(len); 123 while (len > 0) { 124 int chunk = Math.min(len, tempArray.length); 127 len -= chunk; 160 * @param len number of bytes within buf allotted for the digest. 174 protected int engineDigest(byte[] buf, int offset, int len) argument 178 if (len < diges [all...] |
/openjdk10/jdk/src/java.base/share/classes/com/sun/crypto/provider/ |
H A D | ElectronicCodeBook.java | 101 * <code>inOff</code> and ending at * <code>(inOff + len - 1)</code>, 107 * @param len the length of the input data 110 * @exception ProviderException if <code>len</code> is not 114 int encrypt(byte[] in, int inOff, int len, byte[] out, int outOff) { argument 115 if ((len % blockSize) != 0) { 118 for (int i = len; i >= blockSize; i -= blockSize) { 123 return len; 130 * <code>inOff</code> and ending at * <code>(inOff + len - 1)</code>, 136 * @param len the length of the input data 139 * @exception ProviderException if <code>len</cod 143 decrypt(byte[] in, int inOff, int len, byte[] out, int outOff) argument [all...] |
/openjdk10/jdk/src/java.security.sasl/share/classes/javax/security/sasl/ |
H A D | SaslServer.java | 151 * {@code offset} and {@code len} specify the portion of {@code incoming} 157 * @param len The number of bytes from {@code incoming} to use. 165 public abstract byte[] unwrap(byte[] incoming, int offset, int len) argument 178 * {@code offset} and {@code len} specify the portion of {@code outgoing} 183 * @param len The number of bytes from {@code outgoing} to use. 191 public abstract byte[] wrap(byte[] outgoing, int offset, int len) argument
|
H A D | SaslClient.java | 158 * {@code offset} and {@code len} specify the portion of {@code incoming} 164 * @param len The number of bytes from {@code incoming} to use. 172 public abstract byte[] unwrap(byte[] incoming, int offset, int len) argument 186 * {@code offset} and {@code len} specify the portion of {@code outgoing} 191 * @param len The number of bytes from {@code outgoing} to use. 199 public abstract byte[] wrap(byte[] outgoing, int offset, int len) argument
|
/openjdk10/jdk/test/com/sun/crypto/provider/Cipher/AES/ |
H A D | TestCICOWithGCM.java | 69 int len = ciInput.read(buffer); 70 System.out.println("read " + len + " bytes from input buffer"); 72 while (len != -1) { 73 ciOutput.write(buffer, 0, len); 74 System.out.println("wite " + len + " bytes to output buffer"); 75 len = ciInput.read(buffer); 76 if (len != -1) { 77 System.out.println("read " + len + " bytes from input buffer");
|
/openjdk10/jdk/test/java/lang/String/nativeEncoding/ |
H A D | libstringPlatformChars.c | 34 int len; local 41 len = (int)strlen(str); 42 bytes = (*env)->NewByteArray(env, len); 48 (*env)->SetByteArrayRegion(env, bytes, 0, len, (jbyte *)str); 59 int len = (*env)->GetArrayLength(env, bytes); local 63 str = (char*)malloc(len + 1); 68 for (i = 0; i < len; i++) { 71 str[len] = '\0';
|
/openjdk10/nashorn/samples/ |
H A D | passwordgen.js | 35 var len = arguments.length? parseInt(arguments[0]) : 8; variable 47 ints(len, 0, chars.length).
|