src/org/kocakosm/pitaya/util/LittleEndian.java
public static void encode(int n, byte[] out, int off)
	{
		out[off] = (byte) n;
		out[off + 1] = (byte) (n >>> 8);
		out[off + 2] = (byte) (n >>> 16);
		out[off + 3] = (byte) (n >>> 24);
	}
public static void encode(int n, byte[] out, int off)
	{
		out[off] = (byte) n;
		out[off + 1] = (byte) (n >>> 8);
		out[off + 2] = (byte) (n >>> 16);
		out[off + 3] = (byte) (n >>> 24);
	}
Encodes the given {@code int} value using little-endian byte ordering
convention into the given array, starting at the given offset.

@param n the {@code int} value to encode.
@param out the output buffer.
@param off the output offset.

@throws NullPointerException if {@code out} is {@code null}.
@throws IndexOutOfBoundsException if {@code off} is negative or if
{@code out}'s length is lower than {@code off + 4}.