protected final void writeH(ByteBuffer buf,int value){
  buf.putShort((short)value);
}

protected final void writeH ( ByteBuffer buf , int value ) { buf . putShort ( ( short ) value ) ; }
write short to buffer .
