src/org/kocakosm/pitaya/util/LittleEndian.java
public static void encode(long 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);
		out[off + 4] = (byte) (n >>> 32);
		out[off + 5] = (byte) (n >>> 40);
		out[off + 6] = (byte) (n >>> 48);
		out[off + 7] = (byte) (n >>> 56);
	}
public static void encode(long 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);
		out[off + 4] = (byte) (n >>> 32);
		out[off + 5] = (byte) (n >>> 40);
		out[off + 6] = (byte) (n >>> 48);
		out[off + 7] = (byte) (n >>> 56);
	}
public static void encode ( long 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 ) ; out [ off + 4 ] = ( byte ) ( n >>> 32 ) ; out [ off + 5 ] = ( byte ) ( n >>> 40 ) ; out [ off + 6 ] = ( byte ) ( n >>> 48 ) ; out [ off + 7 ] = ( byte ) ( n >>> 56 ) ; }
Encodes the given {@code long} value using little-endian byte
ordering convention into the given array, starting at the given
offset.

@param n the {@code long} 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 + 8}.
Encodes the given { @code long } value using little - endian byte ordering convention into the given array starting at the given offset .