By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,330 Members | 1,262 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,330 IT Pros & Developers. It's quick & easy.

hex byte array to integer

P: n/a

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,
Nov 13 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.