Package org.bytedeco.javacpp.annotation
Annotation Type NoOffset
-
@Documented @Retention(RUNTIME) @Target({TYPE,METHOD}) public @interface NoOffset
By default,Generator
appliesoffsetof()
to all member variables. For each value returnedLoader.putMemberOffset(String, String, int)
gets called, allowing to query efficiently those values from Java at a later point by callingLoader.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:
Generator