会员
周边
众包
新闻
博问
闪存
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
JohnYang
定心者,勇猛精进,终获证果 (知乎:https://www.zhihu.com/people/johnyang819)
博客园
首页
新随笔
联系
订阅
管理
2025年3月9日
C#之BitConverter.ToInt16
摘要: byte[] bytes = { 1,3 }; short s = BitConverter.ToInt16(bytes,0); Console.WriteLine(s); 从低位到高位填充: 0000 0003 0000 0001 3*2^8+1=769; byte[] bytes = { 0x2
阅读全文
posted @ 2025-03-09 10:26 JohnYang819
阅读(138)
评论(0)
推荐(0)