Here you can find the source of longToByteArray(long pSrc, byte[] pDst, int pOffset)
public static void longToByteArray(long pSrc, byte[] pDst, int pOffset)
//package com.java2s; public class Main { public static void longToByteArray(long pSrc, byte[] pDst, int pOffset) { pDst[pOffset] = (byte) (pSrc >>> 56); pDst[pOffset + 1] = (byte) (pSrc >>> 48); pDst[pOffset + 2] = (byte) (pSrc >>> 40); pDst[pOffset + 3] = (byte) (pSrc >>> 32); pDst[pOffset + 4] = (byte) (pSrc >>> 24); pDst[pOffset + 5] = (byte) (pSrc >>> 16); pDst[pOffset + 6] = (byte) (pSrc >>> 8); pDst[pOffset + 7] = (byte) pSrc; }/*from w ww . j a va 2 s . c o m*/ }