Conversion problem

  • Thread starter Thread starter twt
  • Start date Start date
T

twt

How do I convert a byte[] (properly initialised, of course) to a int?
I tried (eventually) to use unsafe code and write 'int len=*(int *)bytes',
where bytes is of type byte[]. Needless to say it didn't work (said I can't
convert a byte[] to a int * -- I tend to disagree...). Well? What's the
right way to do it?
 
Back
Top