Peek at the next integer without advancing the read position. @return The integer value at the current read position
()
| 259 | * @return The integer value at the current read position |
| 260 | */ |
| 261 | public int peekInt() { |
| 262 | validatePos(pos + 2); |
| 263 | int b1 = buf[pos] & 0xFF; |
| 264 | int b2 = buf[pos + 1] & 0xFF; |
| 265 | return (b1 << 8) + b2; |
| 266 | } |
| 267 | |
| 268 | |
| 269 | /** |
no test coverage detected