A .NET wrapper for CRoaring - a C implementation of RoaringBitmap.
Platform/Architecture | x86 | x64 | arm | arm64 |
---|---|---|---|---|
windows | ✅ | ✅ | ✅ | ✅ |
linux | ✅ | ✅ | ✅ | |
osx | ✅ | ✅ |
- .NET 8
- .NET 6
using var rb1 = new Roaring32Bitmap();
using var rb2 = new Roaring32Bitmap();
rb1.AddMany([1, 2, 3, 4, 5, 100, 1000]);
rb1.Optimize();
rb2.AddMany([3, 4, 5, 7, 50]);
rb2.Optimize();
using var result = rb1.And(rb2);
Console.WriteLine(result.Contains(2));
Console.WriteLine(result.Contains(4));
Console.WriteLine(result.Contains(5));
- gcc
- VCpkg and please do
vcpkg integrate install
. (CMake for CRoaring will be handled by VCpkg on your behalf.) - run
build/build-libs.sh
to build a CRoaring library
- VS2022 or later
- VCpkg and please do
vcpkg integrate install
. (CMake for CRoaring will be handled by VCpkg on your behalf.) - run
build/build-libs.bat
to build a CRoaring library