MCPcopy Create free account
hub / github.com/demoth/jake2 / readShort

Method readShort

qcommon/src/main/java/jake2/qcommon/sizebuf_t.java:122–130  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

120 }
121
122 public short readShort() {
123 final short c;
124 if (readcount + 2 > cursize)
125 c = -1;
126 else
127 c = (short) ((readByte() & 0xff) + (readByte() << 8));
128
129 return c;
130 }
131
132 public void writeInt(int c) {
133 int i = GetSpace(4);

Callers 15

readCoordMethod · 0.95
readPosMethod · 0.95
readAngleShortMethod · 0.95
ParseLightningMethod · 0.80
testShortMethod · 0.80
loadMethod · 0.80
loadMethod · 0.80
parseHeaderMethod · 0.80
readDeltaUserCommandMethod · 0.80
parseMethod · 0.80
parseMethod · 0.80
parseMethod · 0.80

Calls 1

readByteMethod · 0.95

Tested by 1

testShortMethod · 0.64