NativeInterop 1.2.1

There is a newer version of this package available.
See the version list below for details.
dotnet add package NativeInterop --version 1.2.1
                    
NuGet\Install-Package NativeInterop -Version 1.2.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="NativeInterop" Version="1.2.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="NativeInterop" Version="1.2.1" />
                    
Directory.Packages.props
<PackageReference Include="NativeInterop" />
                    
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 NativeInterop --version 1.2.1
                    
#r "nuget: NativeInterop, 1.2.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.
#addin nuget:?package=NativeInterop&version=1.2.1
                    
Install NativeInterop as a Cake Addin
#tool nuget:?package=NativeInterop&version=1.2.1
                    
Install NativeInterop as a Cake Tool

Extends the NativeInterop.NativePtr module from FSharp.Core with 64-bit capabilities and exposes the functionality in an OOP-friendly manner as NativePtr<T> (raw pointer operations on pointers of type T* where T is an unmanaged type), extension methods to System.IntPtr and NativeArray64<T> (a generic native 64-bit array of items of unmanaged type T) to C# and VB (and F#, of course)

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on NativeInterop:

Package Downloads
NativeInterop.SIMD

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 2,362 2/24/2017
3.1.0 1,370 11/14/2016
3.0.2 1,133 11/7/2016
3.0.0 1,231 11/4/2016
2.4.3 1,274 4/17/2016
2.4.2 1,150 4/15/2016
2.4.1 1,178 3/5/2016
2.4.0 1,458 6/3/2015
2.3.5 1,375 4/28/2015
2.3.2 1,364 8/20/2014
2.3.1 1,275 7/10/2014
2.3.0 1,264 7/9/2014
2.2.1 1,279 7/2/2014
2.2.0 1,261 7/2/2014
2.1.0 1,309 6/20/2014
2.0.0 1,324 5/23/2014
1.4.1 1,341 5/18/2014
1.4.0 1,325 5/18/2014
1.2.1 1,568 4/28/2014
1.1.1 1,455 4/12/2014
1.1.0 1,483 4/12/2014
1.0.0 1,425 4/11/2014

Added NativePtr.structureToUnmanagedBuffer
Added NativePtr.unmanagedBufferToStructure

With these two new APIs, one can read structures from/write stuctures to unmanaged buffers allocated as byte*, e.g. via stackalloc byte[...]