Examples of fromDoubleArray()


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

    System.out.println("Double");
    SafeArray da = new SafeArray(Variant.VariantDouble, 4);
    System.out.println("elem size:" + da.getElemSize());
    double dack[] = new double[] { 123.456, 456.123, 1234567.89, 12.3456789 };
    printArray(dack);
    da.fromDoubleArray(dack);
    dack = da.toDoubleArray();
    printArray(dack);

    double d4[] = new double[4];
    da.getDoubles(0, 4, d4, 0);
View Full Code Here

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

   *
   */
  public void testDoubleSafeArray() {
    double sourceData[] = new double[] { 1.5, 2.5, 3.5 };
    SafeArray saUnderTest = new SafeArray(Variant.VariantVariant, 3);
    saUnderTest.fromDoubleArray(sourceData);
    double[] extractedFromSafeArray = saUnderTest.toDoubleArray();
    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.