MCPcopy Create free account
hub / github.com/DGVPSH/SlackOpen / readAll

Method readAll

src/main/java/net/minecraft/src/Config.java:1312–1327  ·  view source on GitHub ↗
(InputStream p_readAll_0_)

Source from the content-addressed store, hash-verified

1310 }
1311
1312 public static byte[] readAll(InputStream p_readAll_0_) throws IOException {
1313 ByteArrayOutputStream bytearrayoutputstream = new ByteArrayOutputStream();
1314 byte[] abyte = new byte[1024];
1315
1316 while (true) {
1317 int i = p_readAll_0_.read(abyte);
1318
1319 if (i < 0) {
1320 p_readAll_0_.close();
1321 byte[] abyte1 = bytearrayoutputstream.toByteArray();
1322 return abyte1;
1323 }
1324
1325 bytearrayoutputstream.write(abyte, 0, i);
1326 }
1327 }
1328
1329 public static GameSettings getGameSettings() {
1330 return gameSettings;

Callers 4

getMethod · 0.95
getMethod · 0.95
loadCustomTextureRawMethod · 0.95
runMethod · 0.95

Calls 4

toByteArrayMethod · 0.80
closeMethod · 0.65
readMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected