Here you can find the source of toUInt16(byte[] bytes, int start)
public static int toUInt16(byte[] bytes, int start)
//package com.java2s; public class Main { public static int toUInt16(byte[] bytes, int start) { return (bytes[start] & 0xff) + ((bytes[start + 1] & 0xff) << 8); }/*from w w w . j a v a 2 s .c om*/ }