惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

WordPress大学
WordPress大学
Microsoft Security Blog
Microsoft Security Blog
Security Archives - TechRepublic
Security Archives - TechRepublic
V
Visual Studio Blog
宝玉的分享
宝玉的分享
IT之家
IT之家
人人都是产品经理
人人都是产品经理
T
The Blog of Author Tim Ferriss
I
InfoQ
B
Blog RSS Feed
T
Threatpost
博客园_首页
M
MIT News - Artificial intelligence
Spread Privacy
Spread Privacy
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Know Your Adversary
Know Your Adversary
U
Unit 42
Engineering at Meta
Engineering at Meta
C
Cyber Attacks, Cyber Crime and Cyber Security
月光博客
月光博客
Scott Helme
Scott Helme
T
Tor Project blog
有赞技术团队
有赞技术团队
AWS News Blog
AWS News Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Last Week in AI
Last Week in AI
S
Schneier on Security
Vercel News
Vercel News
博客园 - Franky
C
Cybersecurity and Infrastructure Security Agency CISA
L
LINUX DO - 热门话题
NISL@THU
NISL@THU
L
LangChain Blog
爱范儿
爱范儿
Google DeepMind News
Google DeepMind News
The GitHub Blog
The GitHub Blog
雷峰网
雷峰网
Latest news
Latest news
C
CXSECURITY Database RSS Feed - CXSecurity.com
Hugging Face - Blog
Hugging Face - Blog
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
www.infosecurity-magazine.com
www.infosecurity-magazine.com
G
GRAHAM CLULEY
S
Security Affairs
A
About on SuperTechFans
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
大猫的无限游戏
大猫的无限游戏
W
WeLiveSecurity
Cisco Talos Blog
Cisco Talos Blog
罗磊的独立博客

博客园 - light's cafe

Queue和Stack的学习代码 转贴一篇关于BitVector32的Blog 依赖单元测试开发 调整过的书籍目录 今天晚上的遭遇 设计,UML,测试驱动开发 看牙记 我是LIGHT的LP,今天由我代笔 明天去买干粒猫粮 面向接口编程 关于测试驱动开发的文章 今天我只睡了三个小时 强命名程序集 我,我 庆祝一下 看兽医记 程序集文件中的版本号 AL链接器 怪事时时有不如昨天多
BitVector32结构学习
light's cafe · 2004-08-23 · via 博客园 - light's cafe

using System;
using System.Windows.Forms;
using System.Collections.Specialized;

namespace Lightsoftware
{
 #region <summary>
 /// <summary>
 ///
 /// </summary>
 #endregion
 public class MyClass: Object
 {
  public static void Main(String[] args)
  {
   //1    decimal 1
   int myBit1 = BitVector32.CreateMask();
   //10   decimal 2
   int myBit2 = BitVector32.CreateMask(myBit1);
   //100  decimal 4
   int myBit3 = BitVector32.CreateMask(myBit2);
   //1000 decimal 8
   int myBit4 = BitVector32.CreateMask(myBit3);
   MessageBox.Show(String.Format("{0}, {1}, {2}, {3}", myBit1, myBit2, myBit3, myBit4));

   BitVector32.Section sectionA = BitVector32.CreateSection(3);
   BitVector32.Section sectionB = BitVector32.CreateSection(127, sectionA);
   BitVector32.Section sectionC = BitVector32.CreateSection(127, sectionB);
   BitVector32.Section sectionD = BitVector32.CreateSection(127, sectionC);
   BitVector32.Section sectionE = BitVector32.CreateSection(255, sectionD);
   // Create the sections
   // AA BBBBBBB CCCCCCC DDDDDDD EEEEEEEE
   BitVector32 word = new BitVector32(0x7fffffff);
   int A = word[sectionA];
   int B = word[sectionB];
   int C = word[sectionC];
   int D = word[sectionD];
   int E = word[sectionE];
   MessageBox.Show(String.Format("{0}, {1}, {2}, {3}", A, B, C, D, E));
  }
 }
}