Here you can find the source of LongToBytesLE(final long val)
public final static byte[] LongToBytesLE(final long val)
//package com.java2s; //License from project: Creative Commons License public class Main { public final static byte[] LongToBytesLE(final long val) { byte[] buf = new byte[8]; for (int i = 0; i < 8; i++) { buf[i] = (byte) (val >>> (8 * i)); }//from ww w. ja v a2 s.c o m return buf; } }