Examples of fromIntArray()


Examples of com.jacob.com.SafeArray.fromIntArray()

    System.out.println("Int");
    SafeArray ia = new SafeArray(Variant.VariantInt, 4);
    System.out.println("elem size:" + ia.getElemSize());
    int iack[] = new int[] { 100000, 200000, 300000, 400000 };
    printArray(iack);
    ia.fromIntArray(iack);
    iack = ia.toIntArray();
    printArray(iack);

    int i4[] = new int[4];
    ia.getInts(0, 4, i4, 0);
View Full Code Here

Examples of com.jacob.com.SafeArray.fromIntArray()

   *
   */
  public void testIntSafeArray() {
    int sourceData[] = new int[] { 100000, 200000, 300000 };
    SafeArray saUnderTest = new SafeArray(Variant.VariantVariant, 3);
    saUnderTest.fromIntArray(sourceData);
    int[] extractedFromSafeArray = saUnderTest.toIntArray();
    for (int i = 0; i < extractedFromSafeArray.length; i++) {
      assertEquals("" + i, sourceData[i], extractedFromSafeArray[i]);
    }
    assertEquals("single get failed: ", sourceData[2], saUnderTest
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.