001    package org.bridj.ann;
002    
003    import java.lang.annotation.ElementType;
004    import java.lang.annotation.Retention;
005    import java.lang.annotation.RetentionPolicy;
006    import java.lang.annotation.Target;
007    
008    /**
009     * Alignment of a C struct / struct field, in bytes.<br>
010     * If this annotation is not present, BridJ will infer the alignment using the C/C++ rules.
011     * @author ochafik
012     */
013    @Retention(RetentionPolicy.RUNTIME)
014    @Target({ElementType.FIELD, ElementType.METHOD})
015    public @interface Alignment {
016        int value();
017    }