示例#1
0
 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;
 }
示例#2
0
 static int getNativeArrayFlags(Collection<Annotation> annotations) {
   return getNativeArrayFlags(ParameterFlags.parse(annotations));
 }