使用位测试,可以容易地测试标志变量上的特定标志。
Using bit tests, you can easily test for specific flags on a flag variable.
我建议使用位域,而不要使用掩码域或16进制的常量。
I recommend the use of bit fields rather than mask fields or hexadecimal constants.
对象模型的一部分可以使用位掩码(bit mask)或原生数组来优化,并牺牲可读性来提高速度。
Portions of the object model might be optimized using bit masks or native arrays, sacrificing readability for speed.
But in society today, and we'll talk a bit about security topics -- and such throughout the course, for cryptography -- for encrypting things like your credit card information and bank accounts -- you don't use 32 bits, you don't use 64 bits, you generally use 1024 bits, 4,048 bits.
但在当今的社会上,我们将讨论一点安全方面的知识,贯穿整个课程,密码学-,加密一些像信用卡信息,银行账号之类的东西--你不能用32位,你也不能用64位,你通常要使用1024位,4048位。
Now that's changing the more years that pass the more of you have 64-bit computers and the more servers have many, many gigabytes of RAM and so you need actually 64-bits, but for now let's assume a common system whereby a pointer just by definition of the homework is 32 bits.
现在计算机也在改变,也有更多的人,使用64位的计算机,更多的服务器有很多,很多G的内存,那样你就需要64位的,现在我们假设通常的系统中,根据家庭作业所定义的,一个指针为32位。
应用推荐