英文

来源:互联网 发布:淘宝客服软件 编辑:程序博客网 时间:2024/03/29 14:28

My season ticket will expire this week   


expire: [ iks'paiə, eks- ]   v. 到期 期满 届满 过期 满期  消灭 tutorial

0xFF is hexidecimal, you can Wikipedia that part. 
 
FF is a representation of 
 
00000000 00000000 00000000 11111111
 
(a 32-bit integer)
 
 bit-wise  逐位

& means bit-wise "and", and so when you use it on two ints, each pair of bits from those two ints is 

and-ed and the result is placed in the resultant int:
 
Example (showing 16 bits only)
 
0101 1100 1010 1100
&0000 0000 1111 1111
-----------------
=0000 0000 1010 1100
 
 
 
So as you can see, 0xFF is often used to to isolate a byte in an integer, by truncating the integer to one byte's worth of 1's.
 
For more information, see this WP article:


 Starting with this instance of %, process all consecutive substrings of the form %xy. Each   substring %xy will yield a byte. Convert all  consecutive  bytes obtained this way to whatever
character(s) they represent in the provided
*encoding