Rxmxnx.PInvoke.Extensions 3.0.1

dotnet add package Rxmxnx.PInvoke.Extensions --version 3.0.1
                    
NuGet\Install-Package Rxmxnx.PInvoke.Extensions -Version 3.0.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Rxmxnx.PInvoke.Extensions" Version="3.0.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Rxmxnx.PInvoke.Extensions" Version="3.0.1" />
                    
Directory.Packages.props
<PackageReference Include="Rxmxnx.PInvoke.Extensions" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Rxmxnx.PInvoke.Extensions --version 3.0.1
                    
#r "nuget: Rxmxnx.PInvoke.Extensions, 3.0.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Rxmxnx.PInvoke.Extensions@3.0.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Rxmxnx.PInvoke.Extensions&version=3.0.1
                    
Install as a Cake Addin
#tool nuget:?package=Rxmxnx.PInvoke.Extensions&version=3.0.1
                    
Install as a Cake Tool

Quality Gate StatusBugsCoverageLines of CodeReliability RatingMaintainability RatingSecurity Rating


Description

Rxmxnx.PInvoke.Extensions is a library for safe, typed, and allocation-conscious interop on .NET — from Native AOT to Mono, Unity, and WebAssembly.

Work with UTF-8 the way native APIs already do, keep pointer intent in your signatures, and pin memory only for as long as a callback or using scope lasts.

Features

  • UTF-8 / ASCII stringsCString, CStringSequence, and CStringBuilder for interop and binary pipelines.
  • Typed pointersValPtr<T>, ReadOnlyValPtr<T>, and FuncPtr<TDelegate> without spreading unsafe.
  • Scoped fixed memory — pin spans and references for a callback, including struct-based functional interfaces (the form used on every TFM). Delegate overloads remain on the original modern TFMs (.NET Standard 2.1 / .NET Core 3.0+, until 2.9.5).
  • Managed buffers — stack-first temporary storage for values and object references.
  • Runtime awarenessAotInfo and SystemInfo for Native AOT, Mono, and OS checks.
  • Retrocompatible hosts — the same modern APIs on Framework, Standard, .NET, Mono, UWP, Unity, and Xamarin. Until 2.9.5 the package targeted runtimes that support .NET Standard 2.1; later versions add more TFMs without replacing that baseline.

Documentation

The repository README is a short landing page. Guides for capabilities, use cases, and APIs live in the docs/ folder, including language versions (C# 7.3 / 11 / 13) and which members exist on .NET Framework / UWP / .NET Standard 2.0.

Documentation hub on GitHub

XML comments in the source remain the complete member-level reference.


License

This project is licensed under the MIT License.

Product Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  net5.0-windows was computed.  net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 is compatible.  netcoreapp2.2 was computed.  netcoreapp3.0 is compatible.  netcoreapp3.1 is compatible. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 is compatible. 
.NET Framework net452 is compatible.  net46 is compatible.  net461 is compatible.  net462 is compatible.  net463 was computed.  net47 was computed.  net471 was computed.  net472 is compatible.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Universal Windows Platform uap10.0.16299 is compatible. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (4)

Showing the top 4 NuGet packages that depend on Rxmxnx.PInvoke.Extensions:

Package Downloads
Rxmxnx.JNetInterface.Core

Rxmxnx.JNetInterface.Core provides an API to use JNI in a high level .NET code.

Rxmxnx.JNetInterface

Rxmxnx.JNetInterface provides an implementation of the Java Native Interface and Invocation API for use within the .NET ecosystem.

Mxrx.NetHost.Fxr

Mxrx.NetHost.Fxr provides a flexible and powerful API for building custom .NET hosts using Native AOT technology.

Rxmxnx.JNetInterface.Mobile

Rxmxnx.JNetInterface.Mobile provides an implementation of the Java Native Interface API for use within the .NET Android.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
3.0.1 123 8/27/2026
2.9.5 292 6/10/2026
2.9.0 830 3/10/2026
2.8.5 427 1/26/2026
2.8.2 183 1/16/2026
2.8.0 279 12/25/2025
2.7.4 1,554 11/13/2025
2.7.1 1,195 8/31/2025
2.7.0 341 8/18/2025
2.6.0 718 7/13/2025
2.5.2 295 6/21/2025
2.5.1 481 6/16/2025
2.2.7 662 5/4/2025
2.2.6 893 4/9/2025
2.2.5 636 4/8/2025
2.2.3 906 3/19/2025
Loading failed