MCPcopy Create free account
hub / github.com/BombusMod/BombusMod / readShortArray

Method readShortArray

src/main/java/util/ArrayLoader.java:69–83  ·  view source on GitHub ↗
(String name)

Source from the content-addressed store, hash-verified

67 }
68
69 public short[] readShortArray(String name) {
70 try {
71 InputStream in = StaticData.getInstance().getAssetsLoader().getResourceAsStream(name);
72 DataInputStream is=new DataInputStream(in);
73 int len=is.readInt();
74 short[] arrayShort=new short[len];
75
76 for (int i=0; i<len;i++) {
77 arrayShort[i]=is.readShort();
78 }
79 return arrayShort;
80 } catch (Exception ex) {}
81
82 return null;
83 }
84 public byte[] readByteArray(String name) {
85 try {
86 InputStream in = StaticData.getInstance().getAssetsLoader().getResourceAsStream(name);

Callers

nothing calls this directly

Calls 3

getInstanceMethod · 0.95
getAssetsLoaderMethod · 0.80
getResourceAsStreamMethod · 0.65

Tested by

no test coverage detected