DotNext by .NET Foundation and Contributors

<PackageReference Include="DotNext" Version="4.8.0" />

 BitwiseAnd

struct BitwiseAnd : ISupplier<IntPtr, IntPtr, IntPtr>, IFunctional<Func<IntPtr, IntPtr, IntPtr>>
using DotNext.Runtime.CompilerServices; using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; namespace DotNext.Threading { [StructLayout(LayoutKind.Auto)] internal readonly struct BitwiseAnd : ISupplier<IntPtr, IntPtr, IntPtr>, IFunctional<Func<IntPtr, IntPtr, IntPtr>> { [return: System.Runtime.CompilerServices.NativeInteger] unsafe IntPtr ISupplier<IntPtr, IntPtr, IntPtr>.Invoke([System.Runtime.CompilerServices.NativeInteger] IntPtr x, [System.Runtime.CompilerServices.NativeInteger] IntPtr y) { return (IntPtr)(void*)((long)x & (long)y); } } }