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

1234567891011>>

/openjdk7/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;
/openjdk7/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...]
/openjdk7/jdk/src/share/classes/java/util/zip/
H A DCheckedInputStream.java67 * Reads into an array of bytes. If <code>len</code> is not zero, the method
72 * @param len the maximum number of bytes read
77 * <code>len</code> is negative, or <code>len</code> is greater than
81 public int read(byte[] buf, int off, int len) throws IOException { argument
82 len = in.read(buf, off, len);
83 if (len != -1) {
84 cksum.update(buf, off, len);
86 return len;
[all...]
/openjdk7/hotspot/test/compiler/7179138/
H A DTest7179138_1.java44 int len = s.length();
47 len = len + len;
50 len = len + len;
53 len = len + len;
[all...]
H A DTest7179138_2.java44 int len = s.length();
47 len = len + len;
50 len = len + len;
53 len = len + len;
[all...]
/openjdk7/jdk/src/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];
73 padding[len-1] = paddingOctet;
74 System.arraycopy(padding, 0, in, off, len);
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...]
/openjdk7/jdk/test/java/lang/String/
H A DIsEmpty.java38 int len = s.length();
41 if ((len != 0 && empty) || (len == 0 && !empty))
44 + ", length = " + len);
/openjdk7/jdk/src/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)</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...]
/openjdk7/jdk/src/windows/native/sun/security/krb5/
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);
/openjdk7/jdk/src/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.
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...]
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 DOptionalDataException.java55 OptionalDataException(int len) { argument
57 length = len;
/openjdk7/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...]
/openjdk7/hotspot/src/share/vm/classfile/
H A DaltHashing.hpp45 static jint murmur3_32(const int* data, int len);
46 static jint murmur3_32(jint seed, const int* data, int len);
50 static jint murmur3_32(const jbyte* data, int len);
51 static jint murmur3_32(const jchar* data, int len);
58 static jint murmur3_32(jint seed, const jbyte* data, int len);
59 static jint murmur3_32(jint seed, const jchar* data, int len);
/openjdk7/hotspot/src/share/vm/oops/
H A Dsymbol.cpp39 void* Symbol::operator new(size_t sz, int len, TRAPS) { argument
40 int alloc_size = object_size(len)*HeapWordSize;
46 void* Symbol::operator new(size_t sz, int len, Arena* arena, TRAPS) { argument
47 int alloc_size = object_size(len)*HeapWordSize;
57 bool Symbol::equals(const char* str, int len) const {
59 if (l != len) return false;
74 bool Symbol::starts_with(const char* prefix, int len) const {
75 if (len > utf8_length()) return false;
76 while (len-- > 0) {
77 if (prefix[len] !
113 int len = MIN2(size - 1, utf8_length()); local
123 int len = utf8_length(); local
131 int len = utf8_length(); local
[all...]
/openjdk7/jdk/src/share/native/common/
H A Djio.c41 int len; local
45 len = jio_vsnprintf(str, count, fmt, args);
48 return len;
57 int len; local
61 len = jio_vfprintf(fp, fmt, args);
64 return len;
/openjdk7/jdk/src/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
/openjdk7/jdk/test/sun/nio/cs/
H A DTestTrailingEscapesISO2022JP.java36 int len;
43 while ( ( len = in.read( b, 0, b.length ) ) != -1 ) {
44 out.write(b, 0, len);
56 while ( ( len = inR.read( c, 0, c.length ) ) != -1 ) {
57 System.out.println(len);
58 if (len == 0)
/openjdk7/jdk/src/share/classes/sun/security/ssl/
H A DHandshakeInStream.java95 public int read(byte b [], int off, int len) throws IOException { argument
98 int n = r.read(b, off, len);
99 if (n != len) {
192 int len = getInt8();
193 verifyLength(len);
194 byte b[] = new byte[len];
196 read(b, 0, len);
201 int len = getInt16();
202 verifyLength(len);
203 byte b[] = new byte[len];
219 verifyLength(int len) argument
[all...]
/openjdk7/jaxp/src/com/sun/org/apache/regexp/internal/
H A DCharacterArrayCharacterIterator.java35 private final int len; field in class:CharacterArrayCharacterIterator
38 public CharacterArrayCharacterIterator(char[] src, int off, int len) argument
42 this.len = len;
48 if (endIndex > len) {
50 + "; sequence size=" + len);
62 return substring(beginIndex, len);
74 return (pos >= len);
/openjdk7/jdk/src/share/classes/com/sun/security/sasl/digest/
H A DSecurityCtx.java47 byte[] wrap(byte[] dest, int start, int len) argument
55 byte[] unwrap(byte[] outgoing, int start, int len) argument

Completed in 1844 milliseconds

1234567891011>>