How to convert from byte[] to sbyte*?

theartha
theartha used Ask the Experts™
on
Hi there,

How to convert from byte[] to sbyte*?

private byte[] rawData;
String strl;
str = new String(this.rawData, start, length, ece);  

I got the below error message.

 cannot convert from 'byte[]' to 'sbyte*'      

Please advice.

Thanks.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Glanced up at my screen and thought I had coded the Matrix...  Turns out, I just fell asleep on the keyboard.
Most Valuable Expert 2011
Top Expert 2015
Commented:
Perhaps this would work better:
str = System.Text.Encoding.ASCII.GetString(this.rawData);

Open in new window

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial