Author Topic: No support for signed bytes?  (Read 2336 times)

klept

  • Guest
No support for signed bytes?
« on: February 28, 2013, 05:15:23 AM »
Hey! I realized there is no support for signed bytes, I added these lines to the TNUnityTools.cs

  1. Line 209:
  2.                         else if (type == typeof(sbyte))
  3.                         {
  4.                                 sbyte sb = (sbyte)obj;
  5.                                 bw.Write('p');
  6.                                 bw.Write(sb);
  7.                         }
  8. ...........
  9.  
  10. Line 310:
  11. case 'p': data[i] = reader.ReadSByte(); break;
  12.  

I think this could be a "bug", maybe you forgot to put them!

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: No support for signed bytes?
« Reply #1 on: February 28, 2013, 01:23:22 PM »
Can't say I've ever used them, which is the main reason I never added them. :)