Info
Version: | 1.0.3 |
Author(s): | shibox |
Last Update: | Monday, May 1, 2017 |
.NET Fiddle: | Create the first Fiddle |
Project Url: | https://github.com/shibox/FastBlockCopy |
NuGet Url: | https://www.nuget.org/packages/FastBlockCopy |
Install
Install-Package FastBlockCopy
dotnet add package FastBlockCopy
paket add FastBlockCopy
FastBlockCopy Download (Unzip the "nupkg" after downloading)
in 32 bytes it can 2.5x than Buffer.BlockCopy(),in 200 bytes,it fast than 2x,in 1024 bytes,it fast than 1.25x,in any case,it fast!
use:
1 FastBuffer.UnsafeBlockCopy(from, 0, to, 0, 100); without bounds checking,also it more fast
2 FastBuffer.BlockCopy(from, 0, to, 0, 100); with bounds checking
and it also can use:from.UnsafeBlockCopy(0, to, 0, 100).