Searched defs:length (Results 201 - 225 of 839) sorted by relevance

1234567891011>>

/openjdk7/hotspot/src/share/vm/services/
H A DdiagnosticArgument.cpp68 int length = f->array()->length(); local
71 for (int i = 0; i < length; i++) {
82 if (i < length-1 && len - written > 0) {
120 // len is the length of the current token starting at str
214 * is declared as char[3], and length is checked to be not larger than
215 * two above. Also, this is necessary, since length might be 1, and the
/openjdk7/hotspot/src/share/vm/utilities/
H A DquickSort.cpp71 void QuickSort::print_array(const char* prefix, int* array, int length) { argument
73 for (int i = 0; i < length; i++) {
79 bool QuickSort::compare_arrays(int* actual, int* expected, int length) { argument
80 for (int i = 0; i < length; i++) {
82 print_array("Sorted array ", actual, length);
83 print_array("Expected array", expected, length);
91 bool QuickSort::sort_and_compare(int* arrayToSort, int* expectedResult, int length, C comparator, bool idempotent) { argument
92 sort<int, C>(arrayToSort, length, comparator, idempotent);
93 return compare_arrays(arrayToSort, expectedResult, length);
189 int length local
[all...]
H A DquickSort.hpp47 // A side effect of this is that arrays of length <= 3 are sorted.
49 static int find_pivot(T* array, int length, C comparator) { argument
50 assert(length > 1, "length of array must be > 0");
52 int middle_index = length / 2;
53 int last_index = length - 1;
70 static int partition(T* array, int pivot, int length, C comparator) { argument
72 int right_index = length;
97 static void inner_sort(T* array, int length, C comparator) { argument
98 if (length <
119 sort(T* array, int length, C comparator, bool idempotent) argument
[all...]
/openjdk7/jaxp/src/org/xml/sax/
H A DContentHandler.java349 * @param length the number of characters to read from the array
355 public void characters (char ch[], int start, int length) argument
379 * @param length the number of characters to read from the array
384 public void ignorableWhitespace (char ch[], int start, int length) argument
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/xml/internal/bind/v2/runtime/unmarshaller/
H A DIntArrayData.java43 * data and the length.
82 public int length() { method in class:IntArrayData
83 return getLiteral().length();
103 if(literal.length()>0) literal.append(' ');
H A DIntData.java48 * For example if data=-10, then length=3
50 private int length; field in class:IntData
55 length = 11;
57 length = (i < 0) ? stringSizeOfInt(-i) + 1 : stringSizeOfInt(i);
75 public int length() { method in class:IntData
76 return length;
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/xml/internal/fastinfoset/algorithm/
H A DBuiltInEncodingAlgorithm.java60 if (i != cb.length())
61 wl.word(i, cb.length());
64 public StringBuffer removeWhitespace(char[] ch, int start, int length) { argument
68 for (; idx < length; ++idx) {
H A DHexadecimalEncodingAlgorithm.java67 public final Object decodeFromBytes(byte[] b, int start, int length) throws EncodingAlgorithmException { argument
68 final byte[] data = new byte[length];
69 System.arraycopy(b, start, data, 0, length);
86 public final Object convertFromCharacters(char[] ch, int start, int length) { argument
87 if (length == 0) {
91 StringBuffer encodedValue = removeWhitespace(ch, start, length);
92 int encodedLength = encodedValue.length();
97 int valueLength = encodedValue.length() / 2;
115 if (value.length == 0) {
119 s.ensureCapacity(value.length *
[all...]
H A DUUIDEncodingAlgorithm.java47 public final Object convertFromCharacters(char[] ch, int start, int length) { argument
48 final CharBuffer cb = CharBuffer.wrap(ch, start, length);
72 final int end = ldata.length - 2;
87 if (components.length != 5)
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/xml/internal/fastinfoset/util/
H A DCharArray.java33 public int length; field in class:CharArray
48 length = _length;
53 length = _length;
59 char[] _ch = new char[length];
60 System.arraycopy(ch, start, _ch, 0, length);
66 return new String(ch, start, length);
73 for (int i = start; i < start + length; i++) {
80 public static final int hashCode(char[] ch, int start, int length) { argument
84 for (int i = start; i < start + length; i++) {
96 if (length
110 equalsCharArray(char[] ch, int start, int length) argument
147 public final int length() { method in class:CharArray
[all...]
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/xml/internal/org/jvnet/fastinfoset/sax/
H A DPrimitiveTypeContentHandler.java84 * @param length the number of boolean to read from the array
88 public void booleans(boolean [] b, int start, int length) throws SAXException; argument
108 * @param length the number of byte to read from the array
112 public void bytes(byte[] b, int start, int length) throws SAXException; argument
126 * @param length the number of short to read from the array
130 public void shorts(short[] s, int start, int length) throws SAXException; argument
144 * @param length the number of int to read from the array
148 public void ints(int [] i, int start, int length) throws SAXException; argument
162 * @param length the number of long to read from the array
166 public void longs(long [] l, int start, int length) throw argument
184 floats(float [] f, int start, int length) argument
202 doubles(double [] d, int start, int length) argument
222 uuids(long[] msblsb, int start, int length) argument
[all...]
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/xml/internal/org/jvnet/mimepull/
H A DDataFile.java59 * @param length of data that needs to be read
61 synchronized void read(long pointer, byte[] buf, int offset, int length ) {
62 weak.read(pointer, buf, offset, length);
74 * @param length no bytes to write
78 synchronized long writeTo(byte[] data, int offset, int length) { argument
80 writePointer = weak.writeTo(writePointer, data, offset, length);
H A DWeakDataFile.java64 synchronized void read(long pointer, byte[] buf, int offset, int length ) {
67 raf.readFully(buf, offset, length);
73 synchronized long writeTo(long pointer, byte[] data, int offset, int length) { argument
76 raf.write(data, offset, length);
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/xml/internal/rngom/xml/sax/
H A DAbstractLexicalHandler.java70 public void comment(char[] chars, int start, int length) throws SAXException { argument
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/xml/internal/stream/buffer/sax/
H A DDefaultWithLexicalHandler.java34 public void comment(char[] ch, int start, int length) throws SAXException { } argument
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/xml/internal/ws/message/jaxb/
H A DAttachmentMarshallerImpl.java68 public String addMtomAttachment(byte[] data, int offset, int length, String mimeType, String elementNamespace, String elementLocalName) { argument
84 if (ns != null && (ns.length() > 0)) {
/openjdk7/jdk/src/windows/classes/sun/nio/ch/
H A DSinkChannelImpl.java131 public long write(ByteBuffer[] srcs, int offset, int length) argument
134 if ((offset < 0) || (length < 0) || (offset > srcs.length - length))
137 return write(Util.subsequence(srcs, offset, length));
H A DSourceChannelImpl.java121 public long read(ByteBuffer[] dsts, int offset, int length) argument
124 if ((offset < 0) || (length < 0) || (offset > dsts.length - length))
127 return read(Util.subsequence(dsts, offset, length));
/openjdk7/jdk/test/java/beans/PropertyChangeSupport/
H A DTestSerialization.java49 if (args.length == 0) {
81 int length = a1.length;
82 if (length != a2.length)
83 throw new Error("Different file sizes: " + length + " != " + a2.length);
85 for (int i = 0; i < length; i++)
90 private static void check(PropertyChangeListener[] array, int length) { argument
91 if (length !
[all...]
/openjdk7/jdk/test/java/beans/VetoableChangeSupport/
H A DTestSerialization.java49 if (args.length == 0) {
81 int length = a1.length;
82 if (length != a2.length)
83 throw new Error("Different file sizes: " + length + " != " + a2.length);
85 for (int i = 0; i < length; i++)
90 private static void check(VetoableChangeListener[] array, int length) { argument
91 if (length !
[all...]
/openjdk7/jdk/test/java/beans/XMLDecoder/
H A DTest4864117.java132 public void characters(char[] ch, int start, int length) throws SAXException { argument
133 this.handler.characters(ch, start, length);
/openjdk7/jdk/test/java/io/File/
H A DBasic.java66 showLong("length", f.length());
69 static void testFile(File f, boolean writeable, long length) argument
79 if (f.length() != length) fail(f, "has wrong length");
108 out.print(" [" + fs.length + "]");
109 for (int i = 0; i < fs.length; i++)
112 if (fs.length == 0) fail(thisDir, "is empty");
/openjdk7/langtools/src/share/classes/com/sun/tools/classfile/
H A DCharacterRangeTable_attribute.java47 CharacterRangeTable_attribute(ClassReader cr, int name_index, int length) throws IOException { argument
48 super(name_index, length);
61 super(name_index, 2 + character_range_table.length * Entry.length());
80 public static int length() { method in class:CharacterRangeTable_attribute.Entry
H A DInnerClasses_attribute.java41 InnerClasses_attribute(ClassReader cr, int name_index, int length) throws IOException { argument
42 super(name_index, length);
55 super(name_index, 2 + Info.length() * classes.length);
56 this.number_of_classes = classes.length;
93 public static int length() { method in class:InnerClasses_attribute.Info
/openjdk7/langtools/src/share/classes/com/sun/tools/javac/util/
H A DByteBuffer.java47 public int length; field in class:ByteBuffer
60 length = 0;
65 System.arraycopy(elems, 0, newelems, 0, elems.length);
72 if (length >= elems.length) copy(elems.length * 2);
73 elems[length++] = (byte)b;
80 while (length + len > elems.length) copy(elems.length *
[all...]

Completed in 279 milliseconds

1234567891011>>