C
Claire
I need to convert an array of bytes into an array of chars so I can
initialize a string without using unsafe methods and I thought of using the
following overload of the constructor. public String(char[]);
private byte[] TempBuff = new byte[Buffsize];
// read in bytes from serial port and validate.
String str = new String((char[])TempBuff); << compiler doesn't like this
how do I do this please?
thanks
initialize a string without using unsafe methods and I thought of using the
following overload of the constructor. public String(char[]);
private byte[] TempBuff = new byte[Buffsize];
// read in bytes from serial port and validate.
String str = new String((char[])TempBuff); << compiler doesn't like this
how do I do this please?
thanks