
c# 字节数组翻转
Programming challenge:
编程挑战:
Write me a function with this signature in C#:
用C#给我写一个带有此签名的函数:
public (unsafe?) long Reverse(long i, int bits)
public(unsafe?)long反向(long i,int位)
...to flip the endian-ness (LSB/MSB) of a long, but just the # of significant bits specified.
...翻转长整数的字节序(LSB / MSB),但仅指定有效位的#个。
Example, if the input is 376, with bits=11, the output is 244 (decimal, base 10).
例如,如果输入为376,位=
最后
以上就是自由御姐最近收集整理的关于c# 字节数组翻转_在C#中翻转long的字节序的全部内容,更多相关c#内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复