Gets the signed int value at a particular offset. @param off >= 0, < (size() - 3); offset to fetch @return signed int at that offset
(int off)
| 142 | * @return {@code signed int} at that offset |
| 143 | */ |
| 144 | public int getInt(int off) { |
| 145 | checkOffsets(off, off + 4); |
| 146 | return (getByte0(off) << 24) | |
| 147 | (getUnsignedByte0(off + 1) << 16) | |
| 148 | (getUnsignedByte0(off + 2) << 8) | |
| 149 | getUnsignedByte0(off + 3); |
| 150 | } |
| 151 | |
| 152 | /** |
| 153 | * Gets the {@code signed long} value at a particular offset. |
no test coverage detected