MCPcopy Create free account
hub / github.com/BuildCraft/BuildCraft / readIndex

Method readIndex

common/buildcraft/lib/nbt/WrittenType.java:68–80  ·  view source on GitHub ↗
(ByteBuf bytes)

Source from the content-addressed store, hash-verified

66 }
67
68 public int readIndex(ByteBuf bytes) {
69 switch (this) {
70 case BYTE:
71 return bytes.readUnsignedByte();
72 case SHORT:
73 return bytes.readUnsignedShort();
74 case MEDIUM:
75 return bytes.readUnsignedMedium();
76 default:
77 case INT:
78 return bytes.readInt();
79 }
80 }
81}

Callers 4

readCompoundMethod · 0.95
expandMethod · 0.95
readNormalListMethod · 0.80
readPackedListMethod · 0.80

Calls 3

readUnsignedByteMethod · 0.80
readUnsignedShortMethod · 0.45
readIntMethod · 0.45

Tested by

no test coverage detected