Java ByteBuffer to Long readLongLE(ByteBuffer buf, int i)

Here you can find the source of readLongLE(ByteBuffer buf, int i)

Description

read Long LE

License

Open Source License

Declaration

public static long readLongLE(ByteBuffer buf, int i) 

Method Source Code


//package com.java2s;
/* Partial import of https://github.com/jpountz/lz4-java, Apache 2.0 licensed. */

import java.nio.ByteBuffer;
import java.nio.ByteOrder;

public class Main {
    public static long readLongLE(ByteBuffer buf, int i) {
        assert buf.order() == ByteOrder.LITTLE_ENDIAN;
        return buf.getLong(i);
    }//from  w  w  w . j a v  a  2  s  .c  om
}

Related

  1. readLong(ByteBuffer in)
  2. readLong(ByteBuffer in, final int fitInBytes)
  3. readLong(ByteBuffer logBuf)
  4. readLong64ls(int size, ByteBuffer byteBuf)
  5. readLongArray(ByteBuffer bb)
  6. readUB1(ByteBuffer buffer)
  7. readUB4(ByteBuffer buffer)
  8. readUBEInt16(ByteBuffer b)
  9. readUInt16(ByteBuffer bb)