خرید بک لینک

Vote count: 0

At work today I encountered my first odd java problem..

I believe this problem stems from the fact their system automatically mixes 2 different ascii formats together but I was finally ble to put together the following information.. after querying a bytes array on a substring column I get 8 characters in this very odd format and need help building a method that will EFFICIENTLY convert them back into their 'real' number... so heres my list format.. left side is the byte right side is the real num..

  • 81 > 00
  • 82 > 01
  • 83 > 02
  • 83 > 03
  • 84 > 04
  • 85 > 05
  • 86 > 06
  • 87 > 07
  • 88 > 08
  • 89 > 09
  • 9a > 10
  • 9b > 11
  • 9c > 12
  • 9d > 13
  • 9e > 14
  • 9f > 15
  • a0 > 16
  • etc.. until
  • e4 > 99

examples - 81818182 > 00000001 - e4db81e4 > 99900099

The only thing I've thought of so far is building a hashmap and using the byte as the key to look up the real number..

asked 43 secs ago

برچسب: نویسنده: استخدام کار تاريخ: چهارشنبه 16 تير 1395 ساعت: 6:37

صفحه بندی