我正在尝试将4个字节转换为32位无符号整数.
我想也许是这样的:
UInt32 combined = (UInt32)((map[i] << 32) | (map[i+1] << 24) | (map[i+2] << 16) | (map[i+3] << 8));
但这似乎并没有起作用.我错过了什么?
c# bit-manipulation
bit-manipulation ×1
c# ×1