MCPcopy Create free account
hub / github.com/SpaiR/imgui-java / loadFromResources

Method loadFromResources

example/src/main/java/Main.java:107–113  ·  view source on GitHub ↗
(String name)

Source from the content-addressed store, hash-verified

105 }
106
107 private static byte[] loadFromResources(String name) {
108 try {
109 return Files.readAllBytes(Paths.get(Main.class.getResource(name).toURI()));
110 } catch (IOException | URISyntaxException e) {
111 throw new RuntimeException(e);
112 }
113 }
114
115 public static void main(final String[] args) {
116 launch(new Main());

Callers 1

initFontsMethod · 0.95

Calls 1

getMethod · 0.45

Tested by

no test coverage detected