如何让C#、VB.NET实现复杂的二进制操作
时间:2023-10-14 19:22:52
相应的类库可在我的资源页面中找到,关于类成员的说明可通过对象浏览器查看函数说明
Imports BitOperatorLibrary.ShiftOperation.CircularShiftOperation
Imports BitOperatorLibrary.ShiftOperation.NormalShiftOperation
Imports BitOperatorLibrary.bitConvert
Module Module1
Sub Main()
Console.WriteLine("十六进制数0x2F2E左移一位后的结果为0x{0}。", Hex(_rol_16_(&H2F2E)))
Console.WriteLine("十六进制数0x2F2E循环左移一位后的结果为0x{0}。", Hex(_crol_16_(&H2F2E)))
Console.WriteLine("十六进制数0x2F2E右移一位后的结果为0x{0}。", Hex(_ror_16_(&H2F2E)))
Console.WriteLine("十六进制数0x2F2E循环右移一位后的结果为0x{0}。", Hex(_cror_16_(&H2F2E)))
Console.WriteLine("十六进制数0xFE1A2D的二进制字符串为{0}。", GetBinaryString(&HFE1A2D))
Console.WriteLine("十六进制数0xFE1A2D的第8位设置为1后的结果为0x{0}。", Hex(SetBitState(&HFE1A2D, 7, True)))
Console.ReadKey()
End Sub
End Module
标签:C#,VB.NET,二进制操作
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
Java多线程编程详细解释
2022-12-22 10:19:41
Java 随机生成任意组电话号码过程解析
2022-12-27 21:24:02
![](https://img.aspxhome.com/file/2023/6/89626_0s.png)
SpringBoot集成JmsTemplate(队列模式和主题模式)及xml和JavaConfig配置详解
2022-01-31 05:29:10
![](https://img.aspxhome.com/file/2023/5/64025_0s.png)
Java反射之类的实例对象的三种表示方式总结
2023-10-03 09:51:35
mybatis-plus分页查询的实现示例
2023-11-25 04:57:57
![](https://img.aspxhome.com/file/2023/5/60025_0s.png)
Spring Security OAuth 自定义授权方式实现手机验证码
2021-10-03 23:30:27
![](https://img.aspxhome.com/file/2023/2/72282_0s.png)
Android四大组件之广播BroadcastReceiver详解
2023-03-29 23:41:14
![](https://img.aspxhome.com/file/2023/1/139411_0s.png)
C#操作串口通信协议Modbus的常用方法介绍
2023-01-20 04:06:58
SpringBoot集成Redis流程详解
2022-11-08 21:38:11
swagger中如何给请求添加header
2023-05-15 14:27:52
![](https://img.aspxhome.com/file/2023/0/62350_0s.png)
详解mybatis-plus配置找不到Mapper接口路径的坑
2022-03-12 10:37:45
![](https://img.aspxhome.com/file/2023/1/129171_0s.png)
Android自定义顶部标题栏
2023-02-21 19:03:47
![](https://img.aspxhome.com/file/2023/7/109167_0s.jpg)
java算法之Math.random()随机概率玩法实例演示
2023-11-28 23:32:17
C# 创建EXCEL图表并保存为图片的实例
2023-03-07 07:27:24
![](https://img.aspxhome.com/file/2023/7/81047_0s.png)
Springboot内置的工具类之CollectionUtils示例讲解
2023-08-23 20:47:13
![](https://img.aspxhome.com/file/2023/0/58440_0s.jpg)
Java开源工具iText生成PDF简单实例
2022-09-12 15:06:54
Java工厂模式的使用细则介绍
2022-03-18 01:57:22
![](https://img.aspxhome.com/file/2023/9/101769_0s.png)
外层竖向ScrollView,里层横向ScrollView滑动冲突的解决方法
2022-07-19 14:46:37
Android使用ListView实现下拉刷新及上拉显示更多的方法
2023-01-10 04:29:45
java调用回调机制详解
2023-11-14 21:53:21
![](https://img.aspxhome.com/file/2023/2/59152_0s.jpg)