mirror of
https://github.com/xivdev/Penumbra.git
synced 2026-02-23 00:07:53 +01:00
Make GMP independent of file, cleanup unused functions.
This commit is contained in:
parent
c53f29c257
commit
943207cae8
14 changed files with 108 additions and 158 deletions
|
|
@ -102,30 +102,19 @@ public unsafe class MetaList : IDisposable
|
|||
ResetResourceInternal();
|
||||
}
|
||||
|
||||
public sealed class MetaReverter : IDisposable
|
||||
public sealed class MetaReverter(MetaList metaList, nint data, int length) : IDisposable
|
||||
{
|
||||
public static readonly MetaReverter Disabled = new(null!) { Disposed = true };
|
||||
|
||||
public readonly MetaList MetaList;
|
||||
public readonly nint Data;
|
||||
public readonly int Length;
|
||||
public readonly MetaList MetaList = metaList;
|
||||
public readonly nint Data = data;
|
||||
public readonly int Length = length;
|
||||
public readonly bool Resetter;
|
||||
public bool Disposed;
|
||||
|
||||
public MetaReverter(MetaList metaList, nint data, int length)
|
||||
{
|
||||
MetaList = metaList;
|
||||
Data = data;
|
||||
Length = length;
|
||||
}
|
||||
|
||||
public MetaReverter(MetaList metaList)
|
||||
{
|
||||
MetaList = metaList;
|
||||
Data = nint.Zero;
|
||||
Length = 0;
|
||||
Resetter = true;
|
||||
}
|
||||
: this(metaList, nint.Zero, 0)
|
||||
=> Resetter = true;
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue