Here you can find the source of getLong(ByteBuffer longCalculator, byte[] bytes)
Parameter | Description |
---|---|
longCalculator | Buffer to do the conversion |
bytes | The bytes |
public static float getLong(ByteBuffer longCalculator, byte[] bytes)
//package com.java2s; //License from project: LGPL import java.nio.ByteBuffer; public class Main { /**/* w ww.ja v a 2 s. c o m*/ * Calculates the corresponding long given 8 sequential bytes. * @param longCalculator Buffer to do the conversion * @param bytes The bytes * @return Long value of the bytes */ public static float getLong(ByteBuffer longCalculator, byte[] bytes) { longCalculator.clear(); longCalculator.put(bytes); longCalculator.position(0); return longCalculator.getLong(); } }