NativeInterop 3.2.0

.NET Standard 1.1
dotnet add package NativeInterop --version 3.2.0
NuGet\Install-Package NativeInterop -Version 3.2.0
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="NativeInterop" Version="3.2.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add NativeInterop --version 3.2.0
#r "nuget: NativeInterop, 3.2.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install NativeInterop as a Cake Addin
#addin nuget:?package=NativeInterop&version=3.2.0

// Install NativeInterop as a Cake Tool
#tool nuget:?package=NativeInterop&version=3.2.0

Provides generic pointer operations for all of .NET, building on the capabilities provided by FSharp.NativeInterop.NativePtr, which this package extends with features like 64-bit capabilities, exposed in an OOP-friendly manner as NativePtr<T> and extension methods to System.IntPtr.

NativeArray, an array-like collection of items of unmanaged (blittable) type allocated on the unmanaged heap, supports 64-bit addressing and item access with and without bounds checks, utilizing the CPU's AGUs for address offset calculation where possible.

The included System.IO.Stream extension methods as well as the Buffer and Structure modules enable easy and efficient handling of structured binary data (convert array types, convert structs, access structs in an element-wise fashion, memcpy...).

Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows
.NET Core netcoreapp1.0 netcoreapp1.1 netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1
.NET Standard netstandard1.1 netstandard1.2 netstandard1.3 netstandard1.4 netstandard1.5 netstandard1.6 netstandard2.0 netstandard2.1
.NET Framework net45 net451 net452 net46 net461 net462 net463 net47 net471 net472 net48
MonoAndroid monoandroid
MonoMac monomac
MonoTouch monotouch
Tizen tizen30 tizen40 tizen60
Universal Windows Platform uap uap10.0
Windows Phone wpa81
Windows Store netcore netcore45 netcore451
Xamarin.iOS xamarinios
Xamarin.Mac xamarinmac
Xamarin.TVOS xamarintvos
Xamarin.WatchOS xamarinwatchos
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on NativeInterop:

Package Downloads

Provides SIMD-accelerated operations (create, init, map, ...) on native arrays provided by the NativeInterop package Note for F# Users: The System.Numerics.Vectors package doesn't work out of the box for F# projects. Make sure to MANUALLY ADD <HintPath>..\packages\System.Numerics.Vectors.4.1.1\lib\net46\System.Numerics.Vectors.dll</HintPath> to the reference in your fsproj file!

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
3.2.0 1,681 2/24/2017
3.1.0 1,002 11/14/2016
3.0.2 822 11/7/2016
3.0.0 913 11/4/2016
2.4.3 931 4/17/2016
2.4.2 833 4/15/2016
2.4.1 853 3/5/2016
2.4.0 1,133 6/3/2015
2.3.5 1,056 4/28/2015
2.3.2 1,042 8/20/2014
2.3.1 949 7/10/2014
2.3.0 934 7/9/2014
2.2.1 943 7/2/2014
2.2.0 932 7/2/2014
2.1.0 982 6/20/2014
2.0.0 959 5/23/2014
1.4.1 962 5/18/2014
1.4.0 969 5/18/2014
1.2.1 1,210 4/28/2014
1.1.1 1,118 4/12/2014
1.1.0 1,144 4/12/2014
1.0.0 1,093 4/11/2014

First release to support SIMD extensions: Install the add-on NuGet package NativeInterop.SIMD to use vectorized operations on NativeArrays.

Note for F# Users: The System.Numerics.Vectors package doesn't work out of the box for F# projects. Make sure to MANUALLY ADD <HintPath>..\packages\System.Numerics.Vectors.4.1.1\lib\net46\System.Numerics.Vectors.dll</HintPath> to the reference in your fsproj file!

   - added functions resize and resize64 (and corresponding extension methods)
   - more efficient implementation of filter