How do I do a right and left shift in vb.net?

Divide by two is the same as shifting the bits right once, multiply by two is the same as shifting left once.

If you have VB.NET 2003, however, VB has << and >> operators.
 
The / 256 part is right, but you cant do

data[position++] in VB. :p


Code:
... data(position) / 256
position += 1
 
Back
Top