static int getNativeArrayFlags(int flags) { int nflags = 0; nflags |= ParameterFlags.isIn(flags) ? com.kenai.jffi.ArrayFlags.IN : 0; nflags |= ParameterFlags.isOut(flags) ? com.kenai.jffi.ArrayFlags.OUT : 0; nflags |= (ParameterFlags.isNulTerminate(flags) || ParameterFlags.isIn(flags)) ? com.kenai.jffi.ArrayFlags.NULTERMINATE : 0; return nflags; }
static int getNativeArrayFlags(Collection<Annotation> annotations) { return getNativeArrayFlags(ParameterFlags.parse(annotations)); }