int val = 1506; int result = (~val + 1) & 0X000000FF;
H
H M J
@H M J
Posts
-
C# - Binary Operations? -
Extracting bytes from a 32-bit valueWhat would be a good C# programming manner to extract from a 32-bit value the different bytes (MSB to LSB) in big or little endian format?