0SuperComicLib.LowLevel 3.2.0

Suggested Alternatives

0SuperComicLib.LowLevel 3.3.0

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

// Install 0SuperComicLib.LowLevel as a Cake Tool
#tool nuget:?package=0SuperComicLib.LowLevel&version=3.2.0                

Summary

Representative things you can do with this library

  • Access the object's source memory
    1. Modify readonly fields
    2. Get or modify the value of non-public fields
    3. Get or modify the typehandle or methodtable value (this is only an example)
  • Memory data copy
  • Memory data compare
  • Reference value compare
  • Get address of the object
  • Convert class reference pointer value to original type
  • Copy memory datas from one object type to another public struct type
    (Only if the field layout is the same or the objects are the same size will the copy be successful)
    (Type accessible from external library, regardless of which field is non-public)

Performance

(old benchmark results) 0SuperComicLib.LowLevel is always faster than System.Reflection when copying the entire object memory. See here for more details.

Example

Sample_0000.cs - Github

Output:

 === SuperComicLib.LowLevel ===
 =========== Sample ===========


 === Before ===
 m_ILStream           : 0F 00 4A 90 01 00 00 2A
 m_Length             : 8
 m_MaxStackSize       : 1


 === After ===
 m_ILStream           : 00
 m_Length             : 1
 m_MaxStackSize       : 32

API

Github - 0SuperComicLibs/documents/en-us/0SuperComicLib.LowLevel.md

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

  • .NETFramework 3.5

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Update 3.2
* Remove the generic type for smooth reference value comparison
* Add `ZeroMem` method to help `Dispose` method
* Fix `CompareTo_Signed(ref T, ref T)` method
* Fix `GetValue_s(byte[])` extension method