// Collection of code snippets by Arne Vajhøj 
// (from articles on eksperten.dk / vajhoej.dk written sometime between 2004 and now) 
package m2n;

import java.util.Arrays;
import java.util.List;

import com.sun.jna.Structure;

public class JNAData2 extends Structure {
    public int iv1;
    public byte[] sv1 = new byte[50];
    public int iv2;
    public byte[] sv2 = new byte[50];
    @Override
    protected List<String> getFieldOrder() {    
        return Arrays.asList(new String[] { "iv1", "sv1", "iv2", "sv2" });
    }
} 
