Java ByteBuffer to Int readIntLE(ByteBuffer buf, int i)

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

Description

read Int LE

License

Open Source License

Declaration

public static int readIntLE(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 int readIntLE(ByteBuffer buf, int i) {
        assert buf.order() == ByteOrder.LITTLE_ENDIAN;
        return buf.getInt(i);
    }//from   w w  w  .ja v  a  2  s. c om
}

Related

  1. readInt(ReadableByteChannel channel, ByteBuffer buffer)
  2. readInt16(ByteBuffer bb)
  3. readInt32(ByteBuffer bb)
  4. readInt8(final ByteBuffer buffer)
  5. readIntEquals(ByteBuffer buf, int i, int j)
  6. readIntMSB(ByteBuffer logBuf)
  7. readIntoBuffer(SocketChannel channel, ByteBuffer buf, int sleepMsecs)
  8. readInts(final ByteBuffer bb, final int length)
  9. readInts4(final ByteBuffer buffer, final int[] array, final int count)