Package jnr.ffi.struct.AlignmentTest.TestLib

Examples of jnr.ffi.struct.AlignmentTest.TestLib.PointerStruct


    // @Test
    // public void hello() {}
   

    @Test public void alignPointer() throws Throwable {
        PointerStruct s = new PointerStruct();
        final int SIZE = runtime.addressSize() == 4 ? 8 : 16;
        assertEquals("Incorrect pointer field alignment", SIZE, Struct.size(s));
    }
View Full Code Here

TOP

Related Classes of jnr.ffi.struct.AlignmentTest.TestLib.PointerStruct

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.