Package org.fusesource.hawtjni.runtime

Examples of org.fusesource.hawtjni.runtime.Callback


        bar acutal = new bar();
        memmove(acutal, ptr, bar.SIZEOF);
       
        assertEquals(expected, acutal);
    
        Callback callback = new Callback(this, "instanceCallback", 1);
        callmeback(callback.getAddress());
        assertEquals(69, instanceCallbackResult);
        callback.dispose();

        long r1 = Range.Range();
        Range.dump(r1);

        long r2 = Range.Range(10,100);
        Range.dump(r2);

        Range.delete(r1);
        Range.delete(r2);


        callback = new Callback(ExampleTest.class, "staticCallback", 1);
        callmeback(callback.getAddress());
        assertEquals(69, staticCallbackResult);
        callback.dispose();
       
        // Heap memory is not GCed, we must manually free it.
        free(ptr);

        passingtheenv("Hiram", null);
View Full Code Here

TOP

Related Classes of org.fusesource.hawtjni.runtime.Callback

Copyright © 2018 www.massapicom. 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.