Convert char array To byte array

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi...

I need to know how to convert Char Array to Byte Array and vice-versa in VB
2K5

Thanks for all help.
Elioth
 
I need to know how to convert Char Array to Byte Array and vice-versa in VB
2K5

If you want to do a straight memory copy where one Char takes two
Bytes, use System.Buffer.BlockCopy(). Otherwise use the appropriate
Encoding class from the System.Text namespace and call the GetChars
and GetBytes methods.


Mattias
 
Back
Top