0SuperComicLib.LowLevel 6.1.0

This package makes it possible to read or write raw object memory  
   You can also allocate objects on the native heap

Install-Package 0SuperComicLib.LowLevel -Version 6.1.0
dotnet add package 0SuperComicLib.LowLevel --version 6.1.0
<PackageReference Include="0SuperComicLib.LowLevel" Version="6.1.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add 0SuperComicLib.LowLevel --version 6.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: 0SuperComicLib.LowLevel, 6.1.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 0SuperComicLib.LowLevel as a Cake Addin
#addin nuget:?package=0SuperComicLib.LowLevel&version=6.1.0

// Install 0SuperComicLib.LowLevel as a Cake Tool
#tool nuget:?package=0SuperComicLib.LowLevel&version=6.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

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
  • Memory data copy
  • Memory data compare
  • Reference value compare
  • Get address of the object
  • Convert pointer value to original type
  • Build a complete manual memory management system
    1. You can free the memory when you want
    2. You can flexibly adjust the life of the object
    3. You can safely get the address of the correct object at any time (Only objects allocated by NativeInstance)
  • Copy memory datas from one object type to another public 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

Vs. Reflection

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

Vs. GC

You can release memory when you want. Much more powerful than GC.

(I will replace it with translated benchmark data in the near future) See here (ko-kr)

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

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
  • Memory data copy
  • Memory data compare
  • Reference value compare
  • Get address of the object
  • Convert pointer value to original type
  • Build a complete manual memory management system
    1. You can free the memory when you want
    2. You can flexibly adjust the life of the object
    3. You can safely get the address of the correct object at any time (Only objects allocated by NativeInstance)
  • Copy memory datas from one object type to another public 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

Vs. Reflection

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

Vs. GC

You can release memory when you want. Much more powerful than GC.

(I will replace it with translated benchmark data in the near future) See here (ko-kr)

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

Release Notes

Update 6.1.0
* Critical bug fix

Dependencies

This package has 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.

Version History

Version Downloads Last updated
6.1.0 95 5/8/2021
6.0.0 68 4/5/2021
5.0.0 236 8/21/2020
4.0.0 336 7/9/2020
3.3.0 354 6/25/2020
3.2.0 436 5/25/2020
3.1.0 425 5/13/2020
3.0.0 445 4/9/2020
2.3.0 468 4/8/2020
2.2.0 518 4/8/2020
2.1.0 482 4/7/2020
2.0.1 486 3/18/2020
2.0.0 497 3/18/2020
1.0.0 522 1/30/2020