PinnedMemory 1.0.1

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

// Install PinnedMemory as a Cake Tool
#tool nuget:?package=PinnedMemory&version=1.0.1                

PinnedMemory

License: MIT nuget

PinnedMemory is a cross platform method for creating, and accessing pinned, and locked memory for Windows, Mac, and Linux operating systems in .NET Core.

Install

From a command prompt

dotnet add package PinnedMemory
Install-Package PinnedMemory

You can also search for package via your nuget ui / website:

https://www.nuget.org/packages/PinnedMemory/

Examples

You can find more examples in the github examples project.

using (var pin = new PinnedMemory<byte>(new byte[3]))
{
  pin[0] = 65;
  pin[1] = 61;
  pin[2] = 77;
}
using (var pin = new PinnedMemory<byte>(new byte[3]))
{
  pin.Write(0, 65);
  pin.Write(0, 61);
  pin.Write(0, 77);
}
using (var pin = new PinnedMemory<byte>(new byte[] {65, 61, 77}, false))
{
  var byte1 = pin[0];
  var byte2 = pin[1];
  var byte3 = pin[2];
}
using (var pin = new PinnedMemory<byte>(new byte[] {65, 61, 77}, false))
{
  var byte1 = pin.Read(0);
  var byte2 = pin.Read(1);
  var byte3 = pin.Read(2);
}
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  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 was computed.  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 was computed.  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. 
.NET Core netcoreapp3.1 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETCoreApp 3.1

    • No dependencies.

NuGet packages (8)

Showing the top 5 NuGet packages that depend on PinnedMemory:

Package Downloads
Blake2b.NetCore

Implementation of the cryptographic hash function BLAKE2b. Optimized for PinnedMemory, and 64-bit platform.

SecureRandom.NetCore

Implementation of a cryptographic pseudorandom number generator (CPRNG) using Blake2b. Optimized for PinnedMemory.

ChaCha20.NetCore

Implementation of chacha20 cipher, designed by D. J. Bernstein. Optimized for PinnedMemory

Argon2.NetCore

Implementation of Argon2 key derivation function designed by Alex Biryukov, Daniel Dinu, and Dmitry Khovratovich. Optimized for PinnedMemory.

AeadChaCha20Poly1305.NetCore

Implementation of AEAD_CHACHA20_POLY1305 an authenticated encryption with additional data algorithm using ChaCha20, and Poly1305 designed by D. J. Bernstein. Optimized for PinnedMemory, and .NET core.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.0.0 117 10/14/2024
1.0.1 9,360 7/11/2020
1.0.0 440 7/11/2020