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?
----------------------------------
Peace and love,
Tweety
mitea@sympatico .ca - tweety_04_01@us ers.sourceforge .net
YahooID: tweety_04_01
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?
----------------------------------
Peace and love,
Tweety
mitea@sympatico .ca - tweety_04_01@us ers.sourceforge .net
YahooID: tweety_04_01
Comment