public static int putShort(byte[] bytes,int offset,short val){
  if (littleEndian) {
    val=Short.reverseBytes(val);
  }
  theUnsafe.putShort(bytes,offset + BYTE_ARRAY_BASE_OFFSET,val);
  return offset + Bytes.SIZEOF_SHORT;
}

public static int putShort ( byte [ ] bytes , int offset , short val ) { if ( littleEndian ) { val = Short . reverseBytes ( val ) ; } theUnsafe . putShort ( bytes , offset + BYTE_ARRAY_BASE_OFFSET , val ) ; return offset + Bytes . SIZEOF_SHORT ; }
put a short value out to the specified byte array position in big - endian format .
