()
| 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)); |