我是靠谱客的博主 自由御姐,这篇文章主要介绍c# 字节数组翻转_在C#中翻转long的字节序,现在分享给大家,希望可以做个参考。

c# 字节数组翻转

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#内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(72)

评论列表共有 0 条评论

立即
投稿
返回
顶部