Int64Static: BitwiseAnd

BitwiseAnd

Performs a bitwise AND of two Int64 values.



 Public Function BitwiseAnd(
	  ByRef a As Int64,
	  ByRef b As Int64 ) As Int64

Parameters

a
[ByRef] Int64. The first value of the AND operation.
b
[ByRef] Int64. The second value of the AND operation.

Return Values

Int64 -  A new Int64 value containing the performed bitwise operation.

Examples

The following code performs a bitwise and operation between two 64-bit integer values.

Public Sub Main()
    Dim x As Int64
    Dim y As Int64
    Dim r As Int64
    
    x = CInt64("0xfffffff0")
    y = CInt64("0xffff")
    r = Int64.BitwiseAnd(x, y)
    
    Debug.Print CorString.Format("0x{0:x} AND 0x{1:x8} = 0x{2:x8}", x, y, r)
End Sub

'This code produces the following.
'    0xfffffff0 AND 0x0000ffff = 0x0000fff0

See Also

Project CorLib Overview

Class Int64Static Overview

BitwiseOr

BitwiseNot

BitwiseXor