/openjdk7/jdk/src/windows/native/sun/windows/ |
H A D | awt_ole.cpp | 41 size_t len = _tcsftime(lpBuffer, iBufferSize, _T("%b %d %H:%M:%S"), localtime(&tb.time)); local 42 if (len && len+4 < iBufferSize) { 43 if (_sntprintf(lpBuffer+len, iBufferSize-len-1, _T(".%03d"), tb.millitm) < 0) { 44 lpBuffer[iBufferSize-len-1] = 0;
|
/openjdk7/langtools/src/share/classes/com/sun/tools/javac/jvm/ |
H A D | ClassFile.java | 110 /** Return internal representation of buf[offset..offset+len-1], 113 public static byte[] internalize(byte[] buf, int offset, int len) { argument 114 byte[] translated = new byte[len]; 115 for (int j = 0; j < len; j++) { 130 /** Return external representation of buf[offset..offset+len-1], 133 public static byte[] externalize(byte[] buf, int offset, int len) { argument 134 byte[] translated = new byte[len]; 135 for (int j = 0; j < len; j++) {
|
/openjdk7/jdk/src/share/classes/sun/nio/ch/ |
H A D | ChannelInputStream.java | 87 public synchronized int read(byte[] bs, int off, int len) argument 90 if ((off < 0) || (off > bs.length) || (len < 0) || 91 ((off + len) > bs.length) || ((off + len) < 0)) { 93 } else if (len == 0) 99 bb.limit(Math.min(off + len, bb.capacity()));
|
/openjdk7/jdk/src/share/sample/nio/multicast/ |
H A D | MulticastAddress.java | 87 int len = components[0].length(); 89 if ((colon < 1) || (colon > (len-2))) 94 port = Integer.parseInt(target.substring(colon+1, len)); 101 len = groupString.length(); 102 if (groupString.charAt(len-1) != ']') 104 groupString = groupString.substring(1,len-1);
|
/openjdk7/jdk/src/share/classes/java/io/ |
H A D | FilterReader.java | 73 public int read(char cbuf[], int off, int len) throws IOException { argument 74 return in.read(cbuf, off, len);
|
H A D | PipedReader.java | 205 synchronized void receive(char c[], int off, int len) throws IOException { argument 206 while (--len >= 0) { 274 * Reads up to <code>len</code> characters of data from this piped 275 * stream into an array of characters. Less than <code>len</code> characters 277 * <code>len</code> exceeds the pipe's buffer size. This method 282 * @param len the maximum number of characters read. 291 public synchronized int read(char cbuf[], int off, int len) throws IOException { argument 301 if ((off < 0) || (off > cbuf.length) || (len < 0) || 302 ((off + len) > cbuf.length) || ((off + len) < [all...] |
/openjdk7/jdk/src/share/classes/java/security/ |
H A D | SignatureSpi.java | 123 * @param len the number of bytes to use, starting at offset 128 protected abstract void engineUpdate(byte[] b, int off, int len) argument 154 int len = input.remaining(); 155 byte[] b = new byte[JCAUtil.getTempArraySize(len)]; 156 while (len > 0) { 157 int chunk = Math.min(len, b.length); 160 len -= chunk; 206 * @param len number of bytes within <code>outbuf</code> allotted for the 219 * process the input data provided, or if <code>len</code> is less 224 protected int engineSign(byte[] outbuf, int offset, int len) argument [all...] |
/openjdk7/jdk/src/share/classes/java/sql/ |
H A D | Blob.java | 188 * value; <code>len</code> bytes from the given byte array are written. 207 * @param len the number of bytes to be written to the <code>BLOB</code> 217 int setBytes(long pos, byte[] bytes, int offset, int len) throws SQLException; argument 250 * object represents to be <code>len</code> bytes in length. 258 * @param len the length, in bytes, to which the <code>BLOB</code> value 261 * <code>BLOB</code> value or if len is less than 0 266 void truncate(long len) throws SQLException; argument
|
/openjdk7/jdk/src/share/classes/java/util/zip/ |
H A D | InflaterOutputStream.java | 213 * @param len number of bytes to decompress from {@code b} 215 * {@code len} < 0, or if {@code len} > {@code b.length - off} 221 public void write(byte[] b, int off, int len) throws IOException { argument 226 } else if (off < 0 || len < 0 || len > b.length - off) { 228 } else if (len == 0) { 241 if (len < 1) { 245 part = (len < 512 ? len [all...] |
/openjdk7/hotspot/src/share/vm/libadt/ |
H A D | set.cpp | 73 uint len = 128; // Total string space local 74 char *buf = NEW_C_HEAP_ARRAY(char,len, mtCompiler);// Some initial string space 86 if( buf+len-s < 25 ) { // Generous trailing space for upcoming numbers 88 len <<= 1; // Double string size 89 buf = REALLOC_C_HEAP_ARRAY(char,buf,len, mtCompiler); // Reallocate doubled size 101 if( buf+len-s < 25 ) { // Generous trailing space for upcoming numbers 103 len <<= 1; // Double string size 104 buf = (char*)ReallocateHeap(buf,len, mtCompiler); // Reallocate doubled size 125 // Set. Return the amount of text parsed in "len", or zero in "len" [all...] |
/openjdk7/jdk/src/share/classes/com/sun/jndi/ldap/sasl/ |
H A D | SaslInputStream.java | 127 int len = networkByteOrderToInt(lenBuf, 0, 4); 129 if (len > recvMaxBufSize) { 131 len + "exceeds the negotiated receive buffer size limit:" + 136 System.err.println("reading " + len + " bytes from network"); 140 actual = readFully(saslBuffer, len); 141 if (actual != len) { 142 throw new EOFException("Expecting to read " + len + 147 buf = sc.unwrap(saslBuffer, 0, len);
|
/openjdk7/jdk/src/share/classes/com/sun/script/javascript/ |
H A D | RhinoScriptEngineFactory.java | 82 int len = args.length; 83 if (len == 0) { 88 for (int i = 0; i < len; i++) { 90 if (i != len - 1) { 101 int len = toDisplay.length(); 103 for (int i = 0; i < len; i++) { 122 int len = statements.length; 124 for (int i = 0; i < len; i++) {
|
/openjdk7/jdk/src/share/classes/com/sun/tools/jdi/ |
H A D | Packet.java | 54 int len = data.length + 11; 55 byte b[] = new byte[len]; 56 b[0] = (byte)((len >>> 24) & 0xff); 57 b[1] = (byte)((len >>> 16) & 0xff); 58 b[2] = (byte)((len >>> 8) & 0xff); 59 b[3] = (byte)((len >>> 0) & 0xff); 90 int len = ((b0 << 24) | (b1 << 16) | (b2 << 8) | (b3 << 0)); 91 if (len != b.length) {
|
/openjdk7/hotspot/src/share/vm/ci/ |
H A D | ciArray.hpp | 46 ciArray(ciKlass* klass, int len) : ciObject(klass), _length(len) {} argument
|
/openjdk7/jdk/test/com/sun/crypto/provider/Cipher/AES/ |
H A D | TestKATForECB_IV.java | 65 int len = s.length()/2; 66 if ((len != 16) && (len != 24) && (len != 32)) { 67 throw new IllegalArgumentException("Wrong Key Length: " + len); 75 int len = s.length()/2; 76 byte[] tempValue = new byte[len]; 77 for (int i = 0; i < len; i++) {
|
/openjdk7/jdk/src/share/classes/sun/security/pkcs11/ |
H A D | P11Digest.java | 180 protected int engineDigest(byte[] digest, int ofs, int len) argument 182 if (len < digestLength) { 191 buffer, 0, bufOfs, digest, ofs, len); 196 n = token.p11.C_DigestFinal(session.id(), digest, ofs, len); 221 protected void engineUpdate(byte[] in, int ofs, int len) { argument 223 if (len <= 0) { 226 if ((bufOfs != 0) && (bufOfs + len > buffer.length)) { 230 if (bufOfs + len > buffer.length) { 231 doUpdate(in, ofs, len); 233 System.arraycopy(in, ofs, buffer, bufOfs, len); 297 doUpdate(byte[] in, int ofs, int len) argument [all...] |
/openjdk7/jdk/test/javax/swing/text/WrappedPlainView/6857057/ |
H A D | bug6857057.java | 43 float len = elem.getEndOffset() - pos; 44 int res = view.getBreakWeight(View.X_AXIS, pos, len);
|
/openjdk7/jdk/src/share/classes/sun/misc/ |
H A D | RegexpPool.java | 92 int len = re.length() - 1; 98 len++; 100 if (len <= 0) 106 && (!p.exact || i == len)) { 109 if (i >= len) 116 for (i = len; --i >= 0 && p != null;) { 166 int len = re.length(); 170 while (len > 1) 171 p = p.add(re.charAt(--len)); 174 if (re.charAt(len [all...] |
/openjdk7/jdk/src/share/classes/sun/net/httpserver/ |
H A D | ChunkedInputStream.java | 53 int len = 0; 66 len = len * 16 + val; 68 return len; 113 protected int readImpl (byte[]b, int off, int len) throws IOException { argument 127 if (len > remaining) { 128 len = remaining; 130 int n = in.read(b, off, len);
|
/openjdk7/jdk/src/share/classes/sun/reflect/ |
H A D | ClassDefiner.java | 54 static Class defineClass(String name, byte[] bytes, int off, int len, argument 63 return unsafe.defineClass(name, bytes, off, len, newLoader, null);
|
/openjdk7/jaxws/src/share/jaxws_classes/org/relaxng/datatype/helpers/ |
H A D | StreamingValidatorImpl.java | 71 public void addCharacters( char[] buf, int start, int len ) { 73 buffer.append(buf,start,len);
|
/openjdk7/jdk/src/share/classes/java/util/concurrent/ |
H A D | CopyOnWriteArrayList.java | 353 int len = elements.length; 354 if (a.length < len) 355 return (T[]) Arrays.copyOf(elements, len, a.getClass()); 357 System.arraycopy(elements, 0, a, 0, len); 358 if (a.length > len) 359 a[len] = null; 394 int len = elements.length; 395 Object[] newElements = Arrays.copyOf(elements, len); 419 int len = elements.length; 420 Object[] newElements = Arrays.copyOf(elements, len [all...] |
/openjdk7/jaxp/src/com/sun/org/apache/xml/internal/serializer/ |
H A D | ToSAXHandler.java | 124 final int len = characters.length(); 125 if (len > m_charsBuff.length) 127 m_charsBuff = new char[len*2 + 1]; 129 characters.getChars(0,len, m_charsBuff, 0); 130 characters(m_charsBuff, 0, len); 145 final int len = comment.length(); 146 if (len > m_charsBuff.length) 148 m_charsBuff = new char[len*2 + 1]; 150 comment.getChars(0,len, m_charsBuff, 0); 151 m_lexHandler.comment(m_charsBuff, 0, len); [all...] |
/openjdk7/hotspot/agent/src/share/classes/sun/jvm/hotspot/jdi/ |
H A D | ArrayReferenceImpl.java | 72 private void validateArrayAccess(int index, int len) { argument 79 if (len < 0) { 81 "Invalid array range length: " + len); 83 if (index + len > length()) { 86 index + " to " + (index + len - 1)); 90 public List getValues(int index, int len) { argument 91 if (len == -1) { // -1 means the rest of the array 92 len = length() - index; 94 validateArrayAccess(index, len); 96 if (len [all...] |
/openjdk7/jdk/src/share/native/java/util/zip/zlib-1.2.3/ |
H A D | zadler32.c | 81 uLong ZEXPORT adler32(adler, buf, len) 84 uInt len; 94 if (len == 1) { 104 /* initial Adler-32 value (deferred check for len == 1 speed) */ 109 if (len < 16) { 110 while (len--) { 121 while (len >= NMAX) { 122 len -= NMAX; 133 if (len) { /* avoid modulos if none remaining */ 134 while (len > [all...] |