MCPcopy Create free account
hub / github.com/Frontrooms/3.0-GC / write

Method write

src/main/java/emu/grasscutter/utils/FileUtils.java:19–27  ·  view source on GitHub ↗
(String dest, byte[] bytes)

Source from the content-addressed store, hash-verified

17
18public final class FileUtils {
19 public static void write(String dest, byte[] bytes) {
20 Path path = Paths.get(dest);
21
22 try {
23 Files.write(path, bytes);
24 } catch (IOException e) {
25 Grasscutter.getLogger().warn("Failed to write file: " + dest);
26 }
27 }
28
29 public static byte[] read(String dest) {
30 return read(Paths.get(dest));

Callers 15

copyResourceMethod · 0.95
format_fileFunction · 0.80
saveConfigMethod · 0.80
toStringMethod · 0.80
dumpOpcodesMethod · 0.80
writeEmptyMethod · 0.80
writeMaxMethod · 0.80
writeInt8Method · 0.80
writeBooleanMethod · 0.80
writeUint8Method · 0.80
writeUint16Method · 0.80
writeUint24Method · 0.80

Calls 2

getLoggerMethod · 0.95
getMethod · 0.80

Tested by

no test coverage detected