mirror of
https://github.com/zeek/zeek.git
synced 2025-10-05 16:18:19 +00:00
documentation for bitwise operators
This commit is contained in:
parent
1ca5a5a16d
commit
2bd3a7664d
1 changed files with 7 additions and 0 deletions
|
@ -91,6 +91,10 @@ Here is a more detailed description of each type:
|
|||
type, but a unary plus or minus applied to a "count" results in an
|
||||
"int".
|
||||
|
||||
In addition, "count" types support bitwise operations. You can use
|
||||
``&``, ``|``, and ``^`` for bitwise ``and'', ``or'', and ``xor''. You
|
||||
can also use ``~`` for bitwise (one's) complement.
|
||||
|
||||
.. bro:type:: double
|
||||
|
||||
A numeric type representing a double-precision floating-point
|
||||
|
@ -592,6 +596,9 @@ Here is a more detailed description of each type:
|
|||
The resulting vector of bool is the logical "and" (or logical "or") of
|
||||
each element of the operand vectors.
|
||||
|
||||
Vectors of type ``count`` can also be operands for the bitwise and/or/xor
|
||||
operators, ``&``, ``|`` and ``^``.
|
||||
|
||||
See the :bro:keyword:`for` statement for info on how to iterate over
|
||||
the elements in a vector.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue