code: public static int writeShort(byte[] array, int offset, int v) {
      array[offset + 0] = (byte) (v >>> 8);
      array[offset + 1] = (byte) (v >>> 0);
      return SIZE_SHORT;
    }
docs: Write a short to the byte array at the given offset.
  
  @param array Array to write to
  @param offset Offset to write to
  @param v data
  @return number of bytes written