/openjdk7/jdk/src/share/classes/com/sun/crypto/provider/ |
H A D | ElectronicCodeBook.java | 101 * <code>(plainOffset + len - 1)</code>, is encrypted. 115 * @param len the length of the input data 119 void encrypt(byte[] in, int inOff, int len, byte[] out, int outOff) { argument 120 while (len >= blockSize) { 122 len -= blockSize; 133 * <code>(cipherOffset + len - 1)</code>, is decrypted. 147 * @param len the length of the input data 151 void decrypt(byte[] in, int inOff, int len, byte[] out, int outOff) { argument 152 while (len >= blockSize) { 154 len [all...] |
/openjdk7/jdk/src/share/native/common/ |
H A D | verify_stub.c | 42 VerifyClass(JNIEnv *env, jclass cb, char *buffer, jint len); 45 VerifyClassForMajorVersion(JNIEnv *env, jclass cb, char *buffer, jint len, 49 VerifyClassCodes(JNIEnv *env, jclass cb, char *buffer, jint len) argument 51 return VerifyClass(env, cb, buffer, len); 56 jint len, jint major_version) 58 return VerifyClassForMajorVersion(env, cb, buffer, len, major_version); 55 VerifyClassCodesForMajorVersion(JNIEnv *env, jclass cb, char *buffer, jint len, jint major_version) argument
|
/openjdk7/jdk/src/share/classes/sun/net/httpserver/ |
H A D | FixedLengthInputStream.java | 42 FixedLengthInputStream (ExchangeImpl t, InputStream src, long len) { argument 44 this.remaining = len; 47 protected int readImpl (byte[]b, int off, int len) throws IOException { argument 53 if (len > remaining) { 54 len = (int)remaining; 56 int n = in.read(b, off, len);
|
/openjdk7/jdk/src/share/classes/java/io/ |
H A D | ByteArrayInputStream.java | 148 * 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 D | FilterWriter.java | 73 * @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 D | PushbackInputStream.java | 143 * 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 D | PushbackReader.java | 99 * @param len Maximum number of characters to read 106 public int read(char cbuf[], int off, int len) throws IOException { argument 110 if (len <= 0) { 111 if (len < 0) { 120 if (len < avail) 121 avail = len; 125 len -= avail; 127 if (len > 0) { 128 len = super.read(cbuf, off, len); 174 unread(char cbuf[], int off, int len) argument [all...] |
/openjdk7/jdk/src/share/classes/java/util/zip/ |
H A D | Checksum.java | 46 * @param len the number of bytes to use for the update 48 public void update(byte[] b, int off, int len); argument
|
H A D | InflaterInputStream.java | 56 protected int len; field in class:InflaterInputStream 126 * Reads uncompressed data into an array of bytes. If <code>len</code> is not 131 * @param len the maximum number of bytes read 136 * <code>len</code> is negative, or <code>len</code> is greater than 141 public int read(byte[] b, int off, int len) throws IOException { argument 145 } else if (off < 0 || len < 0 || len > b.length - off) { 147 } else if (len == 0) { 152 while ((n = inf.inflate(b, off, len)) [all...] |
H A D | Deflater.java | 78 private int off, len; field in class:Deflater 196 * @param len the length of the data 199 public void setInput(byte[] b, int off, int len) { argument 203 if (off < 0 || len < 0 || off > b.length - len) { 209 this.len = len; 231 * @param len the length of the data 235 public void setDictionary(byte[] b, int off, int len) { argument 239 if (off < 0 || len < 351 deflate(byte[] b, int off, int len) argument 418 deflate(byte[] b, int off, int len, int flush) argument 550 setDictionary(long addr, byte[] b, int off, int len) argument 551 deflateBytes(long addr, byte[] b, int off, int len, int flush) argument [all...] |
/openjdk7/jdk/src/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...] |
/openjdk7/jdk/src/macosx/native/sun/font/ |
H A D | CGGlyphImages.h | 35 jint rawGlyphCodes[], const CFIndex len);
|
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/xml/internal/bind/v2/runtime/unmarshaller/ |
H A D | IntArrayData.java | 41 * This class holds int[] as a triplet of (data,start,len) 42 * where 'start' and 'len' represents the start position of the 51 private int len; field in class:IntArrayData 59 public IntArrayData(int[] data, int start, int len) { argument 60 set(data, start, len); 75 public void set(int[] data, int start, int len) { argument 78 this.len = len; 102 for( int i=len; i>0; i-- ) { 116 for( int i=len; [all...] |
/openjdk7/jaxws/src/share/jaxws_classes/javax/xml/bind/annotation/adapters/ |
H A D | CollapsedStringAdapter.java | 49 int len = text.length(); 55 while(s<len) { 60 if(s==len) 67 StringBuffer result = new StringBuffer(len /*allocate enough size to avoid re-allocation*/ ); 76 for (int i = s+1; i < len; i++) { 90 len = result.length(); 91 if (len > 0 && result.charAt(len - 1) == ' ') 92 result.setLength(len - 1);
|
/openjdk7/jdk/src/solaris/native/sun/nio/fs/ |
H A D | MacOSXNativeDispatcher.c | 48 jsize len = (*env)->GetArrayLength(env, path); local 49 CFStringAppendCharacters(csref, (const UniChar*)chars, len); 52 len = CFStringGetLength(csref); 53 if (len < PATH_MAX) { 55 result = (*env)->NewCharArray(env, len); 56 (*env)->SetCharArrayRegion(env, result, 0, len, (jchar*)&chars_buf); 59 int ulen = (len + 1) * 2; 67 result = (*env)->NewCharArray(env, len); 68 (*env)->SetCharArrayRegion(env, result, 0, len, (jchar*)chars);
|
/openjdk7/jdk/test/java/io/charStreams/ |
H A D | WriteLengths.java | 40 static void go(int len, String enc) throws Exception { argument 43 char[] cs = new char[len]; 47 if (ba.length != len) { 48 log.println("FAIL: Wrote " + len + ", got " + ba.length
|
/openjdk7/jdk/test/sun/security/rsa/ |
H A D | TestKeyPairGeneratorLength.java | 42 private static void test(int len) throws Exception { argument 44 kpg.initialize(len); 46 System.out.println("Generating keypair " + len + " bit keypair " + (i + 1) + "..."); 50 if (k != len) {
|
/openjdk7/jdk/src/share/classes/sun/security/provider/ |
H A D | DigestBase.java | 113 protected final void engineUpdate(byte[] b, int ofs, int len) { argument 114 if (len == 0) { 117 if ((ofs < 0) || (len < 0) || (ofs > b.length - len)) { 123 bytesProcessed += len; 126 int n = Math.min(len, blockSize - bufOfs); 130 len -= n; 138 while (len >= blockSize) { 140 len -= blockSize; 144 if (len > 174 engineDigest(byte[] out, int ofs, int len) argument [all...] |
/openjdk7/jdk/src/share/classes/sun/tools/jstat/ |
H A D | HeaderClosure.java | 59 int len = h.length(); 61 && (h.charAt(len-1) == ALIGN_CHAR)) { 64 Math.max(c.getFormat().length(), len-2))); 65 h = h.substring(1, len-1); 70 Math.max(c.getFormat().length(), len-1))); 71 h = h.substring(1, len); 73 } else if (h.charAt(len-1) == ALIGN_CHAR) { 76 Math.max(c.getFormat().length(), len-1))); 77 h = h.substring(0, len-1);
|
/openjdk7/jdk/src/share/native/sun/security/ec/impl/ |
H A D | secitem.c | 70 SECITEM_AllocItem(PRArenaPool *arena, SECItem *item, unsigned int len, argument 94 result->len = len; 95 if (len) { 97 result->data = PORT_ArenaAlloc(arena, len, kmflag); 99 result->data = PORT_Alloc(len, kmflag); 120 item->len = 0; 128 * item->len to 0. 139 if (from->data && from->len) { 141 to->data = (unsigned char*) PORT_ArenaAlloc(arena, from->len, [all...] |
/openjdk7/jaxws/src/share/jaxws_classes/org/relaxng/datatype/ |
H A D | DatatypeStreamingValidator.java | 57 void addCharacters( char[] buf, int start, int len );
|
/openjdk7/jdk/src/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)) { 280 * @params len the length of the attribute. 286 private int putLength(int len, OutputStrea argument 327 getHexBytes(byte[] bytes, int len) argument [all...] |
/openjdk7/jdk/src/windows/instrument/ |
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...] |
/openjdk7/jdk/src/solaris/npt/ |
H A D | utf_md.c | 98 iconvConvert(iconv_t ic, char *bytes, int len, char *output, int outputMaxLen) argument 103 UTF_ASSERT(len>=0); 105 UTF_ASSERT(outputMaxLen>len); 119 inLeft = len; 133 outputLen = len; 134 (void)memcpy(output, bytes, len); 135 output[len] = 0; 144 utf8ToPlatform(struct UtfInst*ui, jbyte *utf8, int len, char *output, int outputMaxLen) argument 147 if ( len < 0 ) { 152 if ( len 165 utf8FromPlatform(struct UtfInst*ui, char *str, int len, jbyte *output, int outputMaxLen) argument [all...] |
/openjdk7/jdk/test/sun/net/www/protocol/http/ |
H A D | ResponseCacheStream.java | 110 int len; 113 len = is.read(b, 0, 10); 115 len = 0; 118 len = is.read(b, count, 40 - count); 119 if (len > 0) 120 count += len; 121 } while (len > 0); 123 len = is.read(b2, 0, 20); 125 len = is.read(b, count, 10); 126 count += len; [all...] |