code: public static void setInt16(byte[] dst, int offset, int value) {
          assert (value & 0xffff) == value : "value out of range";
          
          dst[offset + 0] = (byte) (value & 0xFF);
          dst[offset + 1] = (byte) ((value >>> 8) & 0xFF);
      }
docs: Sets a 16-bit integer in the given byte array at the given offset.