Read a 32 bits integer from packet, and advance the read position past it. Integers are encoded as four unsigned bytes with the high-order byte first, and, as far as I can tell, in little-endian order within each byte. @return The long value read from the message
()
| 323 | * @return The long value read from the message |
| 324 | */ |
| 325 | public int getLongInt() { |
| 326 | int b1 = buf[pos++] & 0xFF; // No swap, Java order |
| 327 | b1 <<= 8; |
| 328 | b1 |= (buf[pos++] & 0xFF); |
| 329 | b1 <<= 8; |
| 330 | b1 |= (buf[pos++] & 0xFF); |
| 331 | b1 <<= 8; |
| 332 | b1 |= (buf[pos++] & 0xFF); |
| 333 | validatePos(pos); |
| 334 | return b1; |
| 335 | } |
| 336 | |
| 337 | |
| 338 | /** |
nothing calls this directly
no test coverage detected