Here you can find the source of byte2long(final byte[] v)
private static long[] byte2long(final byte[] v)
//package com.java2s; /******************************************************************************* * Copyright (c) 2010 Oak Ridge National Laboratory. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html ******************************************************************************/ public class Main { /** Convert byte array to long array. */ private static long[] byte2long(final byte[] v) { long result[] = new long[v.length]; for (int i = 0; i < result.length; i++) result[i] = v[i];/*w w w. java2s.c om*/ return result; } }