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