MCPcopy Create free account
hub / github.com/VolmitSoftware/Adapt / read

Method read

src/main/java/com/volmit/adapt/util/NibbleArray.java:108–115  ·  view source on GitHub ↗
(DataInputStream i)

Source from the content-addressed store, hash-verified

106 }
107
108 @Override
109 public void read(DataInputStream i) throws IOException {
110 depth = i.readByte() - Byte.MIN_VALUE;
111 int neededBits = depth * size;
112 data = new byte[(neededBits + neededBits % 8) / 8];
113 mask = (byte) maskFor(depth);
114 i.read(data);
115 }
116
117 public int size() {
118 return size;

Callers 1

NibbleArrayMethod · 0.95

Calls 2

maskForMethod · 0.95
readMethod · 0.65

Tested by

no test coverage detected