src/org/kocakosm/pitaya/util/LittleEndian.java
public static int decodeInt(byte[] in, int off)
	{
		return (in[off] & 0xFF)
			| ((in[off + 1] & 0xFF) << 8)
			| ((in[off + 2] & 0xFF) << 16)
			| ((in[off + 3] & 0xFF) << 24);
	}
public static int decodeInt(byte[] in, int off)
	{
		return (in[off] & 0xFF)
			| ((in[off + 1] & 0xFF) << 8)
			| ((in[off + 2] & 0xFF) << 16)
			| ((in[off + 3] & 0xFF) << 24);
	}
public static int decodeInt ( byte [ ] in , int off ) { return ( in [ off ] & 0xFF ) | ( ( in [ off + 1 ] & 0xFF ) << 8 ) | ( ( in [ off + 2 ] & 0xFF ) << 16 ) | ( ( in [ off + 3 ] & 0xFF ) << 24 ) ; }
Decodes the first 4 bytes starting at {@code off} of the given array
into an {@code int} value using little-endian byte ordering
convention.

@param in the encoded value.
@param off the input offset.

@return the decoded {@code int} value.

@throws NullPointerException if {@code in} is {@code null}.
@throws IndexOutOfBoundsException if {@code off} is negative or if
{@code in}'s length is lower than {@code off + 4}.
Decodes the first 4 bytes starting at { @code off } of the given array into an { @code int } value using little - endian byte ordering convention .