MCPcopy Index your code
hub / github.com/java-native-access/jna / openFlags

Method openFlags

src/com/sun/jna/NativeLibrary.java:167–173  ·  view source on GitHub ↗
(Map<String, ?> options)

Source from the content-addressed store, hash-verified

165
166 private static final int DEFAULT_OPEN_OPTIONS = -1;
167 private static int openFlags(Map<String, ?> options) {
168 Object opt = options.get(Library.OPTION_OPEN_FLAGS);
169 if (opt instanceof Number) {
170 return ((Number)opt).intValue();
171 }
172 return DEFAULT_OPEN_OPTIONS;
173 }
174
175 private static NativeLibrary loadLibrary(final String libraryName, final Map<String, ?> options) {
176 LOG.log(DEBUG_LOAD_LEVEL, "Looking for library '" + libraryName + "'");

Callers 2

loadLibraryMethod · 0.95
getInstanceMethod · 0.95

Calls 2

getMethod · 0.45
intValueMethod · 0.45

Tested by

no test coverage detected