Java Convert via ByteBuffer longFromBytes(byte[] value)

Here you can find the source of longFromBytes(byte[] value)

Description

long From Bytes

License

Apache License

Declaration

public static long longFromBytes(byte[] value) 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import java.nio.ByteBuffer;

public class Main {
    public static long longFromBytes(byte[] value) {
        return ByteBuffer.wrap(value).getLong();
    }/*from w  w  w  .  j av a  2 s.co  m*/
}

Related

  1. intToBytes(int tagId)
  2. intToBytesLE(int value)
  3. intToBytesWithLen(int x, int len)
  4. long2bytes(long num)
  5. longFromBytes(byte[] array)
  6. longTo4ByteArray(long n)
  7. longToByteArray(long l)
  8. longToByteArray(long value)
  9. longToByteArray(long value)