Java ByteBuffer to Int getUnsignedLong(ByteBuffer buf)

Here you can find the source of getUnsignedLong(ByteBuffer buf)

Description

get Unsigned Long

License

Open Source License

Declaration

public static final BigInteger getUnsignedLong(ByteBuffer buf) 

Method Source Code


//package com.java2s;
/*/* w  ww .ja va 2s.co  m*/
 * Copyright 2009-2014 Jagornet Technologies, LLC.  All Rights Reserved.
 *
 * This software is the proprietary information of Jagornet Technologies, LLC. 
 * Use is subject to license terms.
 *
 */

import java.math.BigInteger;

import java.nio.ByteBuffer;

public class Main {
    public static final BigInteger getUnsignedLong(ByteBuffer buf) {
        byte[] data = new byte[8];
        buf.get(data);
        return new BigInteger(data);
    }
}

Related

  1. getUnsignedInt(ByteBuffer bb)
  2. getUnsignedInt(ByteBuffer buffer)
  3. getUnsignedInt(ByteBuffer buffer)
  4. getUnsignedInt(ByteBuffer buffer)
  5. getUnsignedInt16LSBMSB(ByteBuffer byteBuffer)
  6. getUnsignedLong(final ByteBuffer src)
  7. getUnsignedShort(ByteBuffer bb)
  8. getUnsignedShort(ByteBuffer bb)
  9. getUnsignedShort(ByteBuffer bb)