A .Net wrapper for CRoaring - a C implementation of RoaringBitmap
C C# Other
Permalink
Failed to load latest commit information.
src Fixed RepairAfterLazy definition Oct 18, 2016
test/CRoaring.Net.Test Fixed exception in tests Oct 18, 2016
.gitignore
CRoaring.Net.sln
LICENSE
README.md Cleaned up compile section, added testing. Sep 6, 2016
build-linux.sh
build-win.sh Fixed build errors Sep 6, 2016
global.json
test.bat
test.sh Added test.bat Sep 21, 2016

README.md

CRoaring.Net v1.0.0-alpha

A .Net wrapper for CRoaring - a C implementation of RoaringBitmap.

Usage

using (var rb1 = new RoaringBitmap())
using (var rb2 = new RoaringBitmap())
{
    rb1.Add(1, 2, 3, 4, 5, 100, 1000);
    rb1.Optimize();

    rb2.Add(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));
    }
}

Compiling

For Linux

Requirements:

Run the build-linux.sh script

For Windows (using Linux)

Requirements:

Run the build-win.sh script.

For Windows (using Visual Studio)

Requirements:

Build the CRoaring and CRoaring.Net projects.

Microsoft CodeGen currently doesn't support the intrinsics required for building for x86_64. Instead, it is recommended you build using the Linux route above with a virtual machine or Ubuntu on Windows.

Testing CRoaring.Net

Run the test.sh script.