For integral types, & computes the logical bitwise AND of its operands.
对于整型,&计算操作数的逻辑按位“与”。
Performs a bitwise and on two expressions, and assigns the result to the first argument.
在两个运算式上执行位元AND,并将结果指派给第一个引数。
Performs a bitwise and on the value of a variable and the value of an expression and assigns the result to the variable.
在变数值和运算式的值上执行位元AND,然后将结果指派给变数。
Therefore, if the length value is between 0 and 127, I can simply perform a bitwise and operation between the length and 0xff.
因此,如果长度值在0到127之间,那么我可以只执行该长度与0xff之间的一个按位AND操作。
Bitwise logic is complex for ordinary programmers and analysts.
按位逻辑对于普通程序员和分析人员非常复杂。
You may perform the usual C language arithmetic, logical, and bitwise operations.
可以执行C语言中常见的算术、逻辑和位操作。
This allows you to perform bitwise logical and, or, XOR, and NOT comparisons.
这样便可以执行逐位的逻辑AND、OR、XOR和NOT比较。
Bitwise operations perform logical and, or, EXLUSIVE or, and NOT operations on binary representations of their integer arguments.
逐位运算在其二进制形式的整型变量上执行逻辑AND、OR、EXLUSIVE OR和NOT运算。
Thus, I can cast the result of the bitwise operation as a byte, put the byte in a single-byte array, and return the array to the calling application.
因此,我可以将按位操作的结果造型为一个字节,将这个字节放入一个单字节数组,并将这个数组返回给调用应用程序。
There is nothing in the JDK to assist with this either, so you’ll need to create another helper method and probably use bitwise operations and bitshifting in your implementation.
JDK中还是没有干这事的,你依旧需要创建另外一个辅助方法,有可能在你的实现中会使用位操作和位移动。
As part of a new DataBlade module, these data types come with string manipulation functions to validate the data types and bitwise operation functions.
作为DataBlade模块的一部分,这两种数据类型还附带了用于验证数据类型的字符串操纵函数和位操作函数。
Enums can also be used in conjunction with sets, and much like the new EnumMap construct, Tiger supplies a new set implementation EnumSet that allows you to work with bitwise operators.
枚举也可以与集合结合使用,而且非常像新的enummap构造,Tiger提供了一套新的EnumSet实现,允许您使用位操作符。
The shell doesn't have a large collection of arithmetic operators, but it's sufficient for most programming tasks, including bitwise shifts, remainders, and comparisons.
Shell并没有提供大量的算术操作符,但是已经足以完成大多数编程任务,包括移位、求余和比较。
This line of code executes a bitwise OR operation between firstLengthByte and 0x80 (1000 0000) and stores the result in firstLengthByte.
这一行代码对firstLengthByte和0x80 ( 1000 0000)进行按拉OR操作,并将结果储存到 firstLengthByte 中。
Symmetric operators, such as the arithmetic, equality, relational, and bitwise operators, are best defined as ordinary nonmember functions.
对称的操作符,如算术操作符、相等操作符、关系操作符和位操作符,最好定义为普通非成员函数。
Instruction computes the bitwise complement of an integer value and pushes the result onto the stack.
指令计算整数值的按位求补并将结果推送到堆栈上。
The arithmetic and concatenation operators have the order of precedence described in the following section, and all have greater precedence than the comparison, logical, and bitwise operators.
算术和串连运算子优先顺序如下节所述,其优先顺序都高于比较运算子、逻辑运算子和位元运算子。
Performs a bitwise or on two expressions, and assigns the result to the first argument.
在两个运算式上执行位元OR,并将结果指派给第一个引数。
Performs a bitwise exclusive or on two expressions, and assigns the result to the first argument.
在两个运算式上执行位元互斥or,并将结果指派给第一个引数。
The operands are then coerced to the appropriate type, the bitwise operation is performed, and the result is returned.
运算元会强制型转为适当的型别,然后执行位元运算并传回结果。
However, bitwise operators and shift operators never cause overflow.
然而,按位运算符和移位运算符永远不会导致溢出。
The compiler implicitly widened and sign-extended a variable, and then used the resulting value in a bitwise OR operation.
编译器隐含地扩大并正负号扩展了变数,然后在位元的OR运算中使用该结果值。
Bitwise-or adds bits to the resulting expression, whereas bitwise-and selects only those bits in common between its two operators.
按位或向结果表达式添加位,而按位与只选择两个运算符之间相同的位。
Performs a bitwise or on the value of a variable and the value of an expression and assigns the result to the variable.
在变数值和运算式的值上执行位元OR,然后将结果指派给变数。
Performs a bitwise or on the value of a variable and the value of an expression and assigns the result to the variable.
在变数值和运算式的值上执行位元OR,然后将结果指派给变数。
应用推荐