Examples of arraycopy()


Examples of javax.tools.diagnostics.runtime.java.JavaObject.arraycopy()

          // found field
       
          int arraySize=obj.getArraySize();
          assertEquals(3,arraySize);
          threadDumpInstances=new JavaObject[arraySize];
          obj.arraycopy(0,threadDumpInstances,0,arraySize);
          return;
        }
       
      }
    }
View Full Code Here

Examples of javax.tools.diagnostics.runtime.java.JavaObject.arraycopy()

      }
      if ( array == null ^ real[i] == null) {
        return false;
      }
     
      array.arraycopy(0, shortArray, 0, testArraysElementCount);
           
      if (!Arrays.equals(shortArray, real[i])) {
        return false;
      }                 
    }
View Full Code Here

Examples of javax.tools.diagnostics.runtime.java.JavaObject.arraycopy()

              //run the int test
              JavaObject array = (JavaObject) oneField.get(container);
              int remote[] = new int[size];
              int whole[] = new int[size];
              for (int i = 0; i < size; i++) {
                array.arraycopy(i, remote, i, 1);
                assertTrue(remote[i] == (size -i));
              }
              array.arraycopy(0, whole, 0, size);
              assertTrue(Arrays.equals(whole, remote));
            } else if (oneField.getName().equals("DTFJ_ARRAYLET_BYTES")) {
View Full Code Here

Examples of javax.tools.diagnostics.runtime.java.JavaObject.arraycopy()

              int whole[] = new int[size];
              for (int i = 0; i < size; i++) {
                array.arraycopy(i, remote, i, 1);
                assertTrue(remote[i] == (size -i));
              }
              array.arraycopy(0, whole, 0, size);
              assertTrue(Arrays.equals(whole, remote));
            } else if (oneField.getName().equals("DTFJ_ARRAYLET_BYTES")) {
              //run the byte test
              JavaObject array = (JavaObject) oneField.get(container);
              byte remote[] = new byte[size];
View Full Code Here

Examples of javax.tools.diagnostics.runtime.java.JavaObject.arraycopy()

              //run the byte test
              JavaObject array = (JavaObject) oneField.get(container);
              byte remote[] = new byte[size];
              byte whole[] = new byte[size];
              for (int i = 0; i < size; i++) {
                array.arraycopy(i, remote, i, 1);
                assertTrue(remote[i] ==  ((byte)(size -i)));
              }
              array.arraycopy(0, whole, 0, size);
              assertTrue(Arrays.equals(whole, remote));
            } else if (oneField.getName().equals("DTFJ_ARRAYLET_STRINGCONTAINER")) {
View Full Code Here

Examples of javax.tools.diagnostics.runtime.java.JavaObject.arraycopy()

              byte whole[] = new byte[size];
              for (int i = 0; i < size; i++) {
                array.arraycopy(i, remote, i, 1);
                assertTrue(remote[i] ==  ((byte)(size -i)));
              }
              array.arraycopy(0, whole, 0, size);
              assertTrue(Arrays.equals(whole, remote));
            } else if (oneField.getName().equals("DTFJ_ARRAYLET_STRINGCONTAINER")) {
              //run the byte test
              JavaObject array = (JavaObject) oneField.get(container);
              JavaObject whole[] = new JavaObject[size];
View Full Code Here

Examples of javax.tools.diagnostics.runtime.java.JavaObject.arraycopy()

        int length = countField.getInt(root);
        char[] contents = new char[length];
        Object valueObj = valueField.get(root);
        if (valueObj instanceof JavaObject) {
          JavaObject value = (JavaObject)valueObj;
          value.arraycopy(0, contents, 0, length);
         
        }
        String currentString = new String(contents);
        if (SetupJavaRuntime_getHeapRoots.DTFJ_STRING_TABLE_ROOT_TEST.equals(currentString)) {
          found = true;
View Full Code Here

Examples of javax.tools.diagnostics.runtime.java.JavaObject.arraycopy()

        return null;
      } else {
        int length = (int) valueArray.getArraySize();
        value = new char[length];
        try {
          valueArray.arraycopy(0, value, 0, length);
        } catch (IndexOutOfBoundsException e) {
          e.printStackTrace();
          return null;
        }
      }
View Full Code Here

Examples of javax.tools.diagnostics.runtime.java.JavaObject.arraycopy()

            if (field.getSignature().equals("[C")) {
              JavaObject stringObj = (JavaObject) field.get(obj);
              char charArray[] = new char[stringObj
                  .getArraySize()];
             
              stringObj.arraycopy(0, charArray, 0, stringObj
                  .getArraySize());
             
             
              String stringRef = new String(charArray);
              Vector<Byte> vctr = new Vector<Byte>();
View Full Code Here

Examples of javax.tools.diagnostics.runtime.java.JavaObject.arraycopy()

          return rpckt;
        }
        logr.log(JDILogger.LEVEL_VERYVERBOSE, "  array type: " + jObject.getJavaClass().getName()); //$NON-NLS-1$
        if (jObject.getJavaClass().getName().equals("[I")){ //$NON-NLS-1$
          int []jObjs = new int[length];
          jObject.arraycopy(firstIndex, jObjs, 0, length);
          if (jObjs != null){
            Vector<Byte> vctr = new Vector<Byte>();
            logr.log(JDILogger.LEVEL_VERYVERBOSE, "  got " + jObjs.length + " objects"); //$NON-NLS-1$ //$NON-NLS-2$

            vctr.add((byte)'I');
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.