MCPcopy Create free account
hub / github.com/badvision/jace / withMemory

Method withMemory

src/main/java/jace/Emulator.java:109–114  ·  view source on GitHub ↗
(Consumer<RAM> m)

Source from the content-addressed store, hash-verified

107 }
108
109 public static void withMemory(Consumer<RAM> m) {
110 Emulator.withMemory(mem-> {
111 m.accept(mem);
112 return null;
113 }, null);
114 }
115
116 public static <T> T withMemory(Function<RAM, T> m, T defaultValue) {
117 return withComputer(c->{

Callers 15

getMediaConsumersMethod · 0.95
newSearchMethod · 0.95
performSearchMethod · 0.95
initMemoryViewMethod · 0.95
registerListenersMethod · 0.95
configureListenerMethod · 0.95
removeListenerMethod · 0.95
stateChangedMethod · 0.95
stateChangedMethod · 0.95
stateChangedMethod · 0.95
getMemoryMethod · 0.95
unregisterMethod · 0.95

Calls 4

withComputerMethod · 0.95
acceptMethod · 0.80
applyMethod · 0.80
getMemoryMethod · 0.45

Tested by

no test coverage detected