Java examples for java.nio:ByteBuffer Short
get Unsigned Short From ByteBuffer
//package com.java2s; import java.nio.*; public class Main { public static int getUnsignedShortFrom(ByteBuffer bb) { return (bb.getShort() & 0x0000FFFF); }/*from w ww . ja va 2 s.co m*/ }