• Welcome to Valhalla Legends Archive.
 

[vb.net] noob question

Started by mentalCo., November 02, 2004, 07:46 PM

Previous topic - Next topic

mentalCo.

how do you assign a value to a short from a buffer.  like in c++ its:

shortSomevalue = *(unsigned short*)(buffer+2)

MyndFyre

Use the BitConverter class.  I remark about it briefly in this post (in other words, you could have searched).

Information on the BitConverter class can be found at MSDN.
QuoteEvery generation of humans believed it had all the answers it needed, except for a few mysteries they assumed would be solved at any moment. And they all believed their ancestors were simplistic and deluded. What are the odds that you are the first generation of humans who will understand reality?

After 3 years, it's on the horizon.  The new JinxBot, and BN#, the managed Battle.net Client library.

Quote from: chyea on January 16, 2009, 05:05 PM
You've just located global warming.