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

Method readInt

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

Source from the content-addressed store, hash-verified

138 }
139
140 public int readInt() {
141 final int c;
142
143 if (readcount + 4 > cursize) {
144 Com.Printf("buffer underrun in ReadInt!");
145 c = -1;
146 } else
147 c = readByte() & 0xff
148 | (readByte() & 0xff) << 8
149 | (readByte() & 0xff) << 16
150 | (readByte() & 0xff) << 24;
151
152 return c;
153 }
154
155 public void writeFloat(float f) {
156 writeInt(Float.floatToIntBits(f));

Callers 15

readFloatMethod · 0.95
readAdapterMethod · 0.80
ReadLevelMethod · 0.80
readMethod · 0.80
loadMethod · 0.80
readMethod · 0.80
readMethod · 0.80
readMethod · 0.80
readMethod · 0.80
readMethod · 0.80
readItemMethod · 0.80
readMethod · 0.80

Calls 2

PrintfMethod · 0.95
readByteMethod · 0.95

Tested by 2

testIntegersMethod · 0.64
mainMethod · 0.64