Java Byte Array to Long byte2long(final byte[] v)

Here you can find the source of byte2long(final byte[] v)

Description

Convert byte array to long array.

License

Open Source License

Declaration

private static long[] byte2long(final byte[] v) 

Method Source Code

//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;
    }
}

Related

  1. byte2long(byte[] b)
  2. byte2Long(byte[] bytes, int offset)
  3. byte2Long(byte[] bytes, int offset)
  4. byte2long(byte[] data)
  5. byte2long(byte[] value, int count)
  6. bytes2long(byte[] b)
  7. bytes2long(byte[] byteArray, int offset)
  8. bytes2long(byte[] bytes)
  9. bytes2long(byte[] bytes)