Skip to content

sandbox-core · C

The .NET binding of the sandbox-core kernel, published as the Infrared.Sandbox.CsBindgen NuGet package (C ABI + csbindgen-generated P/Invoke, netstandard2.0). The API reference is generated from the assembly's XML docs by DefaultDocumentation and rendered here in Material, so it always matches the shipped package.

Install

dotnet add package Infrared.Sandbox.CsBindgen

Quick start

using Infrared.Sandbox.CsBindgen;

Console.WriteLine(Sandbox.Greet("world"));

using var t = Tile.FromQuadkey("213");
Console.WriteLine($"{t.Quadkey()} {t.Bbox().Area}");

var s = Sandbox.GetStats(new[] { 1.0, 2.0, 3.0 });
Console.WriteLine($"{s.Count} {s.Mean}");

Browse the API by type in the sidebar. Sandbox holds the top-level functions (Greet, GetStats, Scale, PackF32, UnpackF32).