Code Monkey home page Code Monkey logo

croaring.net's Introduction

CRoaring.Net

MyGet Build status

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

Usage

using (var rb1 = new RoaringBitmap())
using (var rb2 = new RoaringBitmap())
{
	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));
	}
}

Project Notes

  • CRoaring is a C/C++ dummy project whose whole responsibility is to trigger VCpkg to build the CRoaring native library.
  • CRoaring.Net is a .Net Core 8 project that wraps the native library using P/Invoke which works on Linux and Windows.
    • It will copy the binaries out of the native VCpkg project folder as content assets into its own output directory.

Compiling

Linux

Requirements:

Run the build.sh script

Windows

Requirements:

  • VS2022 or later
  • VCpkg and please do vcpkg integrate install. (CMake for CRoaring will be handled by VCpkg on your behalf.)

Build the CRoaring and CRoaring.Net projects.

Testing CRoaring.Net

Run the test.sh or test.bat scripts.

croaring.net's People

Contributors

auralytical avatar miniksa avatar phnx47 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.