Hi,
Checking out some byte shifting code in C#, and interested in putting it
into VB.NET. Anyone know how to transform the following into VB?
public static void Put32Bit(long value, byte[]b, int offset)
{
b[0+offset] = (byte) ((value & 0xff000000) >> 24);
b[1+offset] = (byte) ((value & 0x00ff0000) >> 16);
b[2+offset] = (byte) ((value & 0x0000ff00) >> 8);
b[3+offset] = (byte) (value & 0x000000ff);
}
Thanks for any help.