MCPcopy Create free account
hub / github.com/QuiltMC/chasm / readFile

Method readFile

chasm/src/main/java/org/quiltmc/chasm/api/util/Context.java:50–50  ·  view source on GitHub ↗

Returns the contents of the file at the given path, or null if the file does not exist or if chasm processors shouldn't have access to this file. Important : like the other functions in this interface, implementations of this function must be pure, which means you should

(String path)

Source from the content-addressed store, hash-verified

48 * @return The bytes in the file, or {@code null} if the file doesn't exist or is inaccessible
49 */
50 @Contract(pure = true)
51 byte @Nullable [] readFile(String path);
52}

Callers 3

readFileMethod · 0.65
applyMethod · 0.65
readStringMethod · 0.65

Implementers 3

ChasmContextchasm/src/main/java/org/quiltmc/chasm/
TestsBasechasm/src/test/java/org/quiltmc/chasm/
IntrinsicsTestchasm/src/test/java/org/quiltmc/chasm/

Calls

no outgoing calls

Tested by

no test coverage detected