public static void putUnsignedShort(ByteBuffer bb,int v,int offset){
  bb.putShort(offset,(short)(v & 0xffff));
}

public static void putUnsignedShort ( ByteBuffer bb , int v , int offset ) { bb . putShort ( offset , ( short ) ( v & 0xffff ) ) ; }
put an unsigned short into the specified bytebuffer at the specified offset
