hex byte array to integer

D

David Glover

Hi,

I am pretty new to c# and was wondering the following:

I have a byte array with hexadecimal values (it is actually the frame
size field extracted from an ID3v2 tag). For example it may read:

ba[0] = 0x0
ba[1] = 0x0
ba[2] = 0x0
ba[3] = 0x10

I need to be able to convert this into an integer. In this case, it is
obviously 16, however I was wondering how you would go about doing
this programatically in c#.

Any suggestions anyone?

Many thanks,
David
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top