Annotation Type NoOffset


@Documented @Retention(RUNTIME) @Target({TYPE,METHOD}) public @interface NoOffset
By default, Generator applies offsetof() to all member variables. For each value returned Loader.putMemberOffset(String, String, int) gets called, allowing to query efficiently those values from Java at a later point by calling Loader.offsetof(Class, String). However, this is only guaranteed to work on plain old data (POD) struct. To prevent the C++ compiler from complaining in other cases, we can add this annotation to the peer class declaration.
See Also: