Here you can find the source of readShortLE(ByteBuffer buf, int i)
public static int readShortLE(ByteBuffer buf, int i)
//package com.java2s; /* Partial import of https://github.com/jpountz/lz4-java, Apache 2.0 licensed. */ import java.nio.ByteBuffer; public class Main { public static int readShortLE(ByteBuffer buf, int i) { return (buf.get(i) & 0xFF) | ((buf.get(i + 1) & 0xFF) << 8); }/*from w ww . ja v a2 s. c o m*/ }