Here you can find the source of LongToBytes4(long l, byte abyte0[])
public static void LongToBytes4(long l, byte abyte0[])
//package com.java2s; //License from project: Apache License public class Main { public static void LongToBytes4(long l, byte abyte0[]) { abyte0[3] = (byte) (int) (255L & l); abyte0[2] = (byte) (int) ((65280L & l) >> 8); abyte0[1] = (byte) (int) ((0xff0000L & l) >> 16); abyte0[0] = (byte) (int) ((0xffffffffff000000L & l) >> 24); }/*from ww w. java 2s . c om*/ }