/** * Shortcut for {@code getInt(input, offset) & 0xFFFFFFFFL}. Could be implemented more * efficiently. * * @param input the object to access * @param offset offset to the first byte to read within the byte sequence represented * by the given object * @return four bytes as an unsigned int value, in {@linkplain #byteOrder(Object) the expected * order} */ public long getUnsignedInt(T input, long offset) { return ((long) getInt(input, offset)) & 0xFFFFFFFFL; }
<T> int fetch32(Access<T> access, T in, long off) { return access.getInt(in, off); }
<T> int fetch32(Access<T> access, T in, long off) { return access.getInt(in, off); }
@Override <T> long fetch32(Access<T> access, T in, long off) { return Integer.reverseBytes(access.getInt(in, off)) & 0xFFFFFFFFL; }
@Override <T> long fetch32(Access<T> access, T in, long off) { return Integer.reverseBytes(access.getInt(in, off)) & 0xFFFFFFFFL; }