7 Commits
Author SHA1 Message Date
ds5678 c68a76ab3c Update test dependencies and stabilize tensor package
Upgraded several test-related dependencies in `AssetRipper.Conversions.FastPng.Tests.csproj`:
- `Microsoft.NET.Test.Sdk` to 18.0.1
- `NUnit` to 4.4.0
- `NUnit.Analyzers` to 4.11.2
- `NUnit3TestAdapter` to 5.2.0

Updated `System.Numerics.Tensors` in `AssetRipper.Conversions.FastPng.csproj` from a preview version to the stable 10.0.0 release.
2025-11-25 17:31:07 -08:00
ds5678 7bea12dd0c Switch to .slnx format for solution management
Replaced the traditional Visual Studio `.sln` file with a new `.slnx` file, adopting a modern XML-based solution format. The new `.slnx` file organizes solution items under a `/Solution Items/` folder and includes references to the three projects: `AssetRipper.Conversions.FastPng.ConsoleApp`, `AssetRipper.Conversions.FastPng.Tests`, and `AssetRipper.Conversions.FastPng`. This change simplifies the solution structure and reflects a shift to updated tooling.
2025-11-25 17:29:42 -08:00
ds5678 b154e722e8 Changes from generation 2025-11-25 17:27:50 -08:00
ds5678 f5dc8b22ee Changes from updated generation 2025-09-27 13:32:52 -07:00
ds5678 856621a002 Update with new struct and inline array naming 2025-09-20 10:08:21 -07:00
ds5678 48ce8fc0dc Add parameter attributes 2025-09-17 22:57:44 -07:00
ds5678 31cc453ee3 Update with changes in the generation for AssetRipper.Translation.LlvmIR 2025-09-17 01:07:21 -07:00
471 changed files with 14427 additions and 18054 deletions

No files matched your search

@@ -13,13 +13,13 @@
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.14.1" />
<PackageReference Include="NUnit" Version="4.3.2" />
<PackageReference Include="NUnit.Analyzers" Version="4.9.2">
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.0.1" />
<PackageReference Include="NUnit" Version="4.4.0" />
<PackageReference Include="NUnit.Analyzers" Version="4.11.2">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="NUnit3TestAdapter" Version="5.0.0" />
<PackageReference Include="NUnit3TestAdapter" Version="5.2.0" />
</ItemGroup>
<ItemGroup>
-46
View File
@@ -1,46 +0,0 @@
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.14.36212.18
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AssetRipper.Conversions.FastPng.ConsoleApp", "AssetRipper.Conversions.FastPng.ConsoleApp\AssetRipper.Conversions.FastPng.ConsoleApp.csproj", "{715FB8D0-EA47-451F-9D70-B797ECE60BE7}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{8EC462FD-D22E-90A8-E5CE-7E832BA40C5D}"
ProjectSection(SolutionItems) = preProject
.editorconfig = .editorconfig
.gitignore = .gitignore
Directory.Build.props = Directory.Build.props
LICENSE = LICENSE
README.md = README.md
EndProjectSection
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AssetRipper.Conversions.FastPng", "AssetRipper.Conversions.FastPng\AssetRipper.Conversions.FastPng.csproj", "{CEAD81C2-E1E2-4454-83EF-54C2A2EC3ADE}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AssetRipper.Conversions.FastPng.Tests", "AssetRipper.Conversions.FastPng.Tests\AssetRipper.Conversions.FastPng.Tests.csproj", "{DB5D29F9-82D4-49F6-AA92-28645348153F}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{715FB8D0-EA47-451F-9D70-B797ECE60BE7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{715FB8D0-EA47-451F-9D70-B797ECE60BE7}.Debug|Any CPU.Build.0 = Debug|Any CPU
{715FB8D0-EA47-451F-9D70-B797ECE60BE7}.Release|Any CPU.ActiveCfg = Release|Any CPU
{715FB8D0-EA47-451F-9D70-B797ECE60BE7}.Release|Any CPU.Build.0 = Release|Any CPU
{CEAD81C2-E1E2-4454-83EF-54C2A2EC3ADE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{CEAD81C2-E1E2-4454-83EF-54C2A2EC3ADE}.Debug|Any CPU.Build.0 = Debug|Any CPU
{CEAD81C2-E1E2-4454-83EF-54C2A2EC3ADE}.Release|Any CPU.ActiveCfg = Release|Any CPU
{CEAD81C2-E1E2-4454-83EF-54C2A2EC3ADE}.Release|Any CPU.Build.0 = Release|Any CPU
{DB5D29F9-82D4-49F6-AA92-28645348153F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{DB5D29F9-82D4-49F6-AA92-28645348153F}.Debug|Any CPU.Build.0 = Debug|Any CPU
{DB5D29F9-82D4-49F6-AA92-28645348153F}.Release|Any CPU.ActiveCfg = Release|Any CPU
{DB5D29F9-82D4-49F6-AA92-28645348153F}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {AA5F7369-0335-4669-A2F5-B2D7A9293086}
EndGlobalSection
EndGlobal
+12
View File
@@ -0,0 +1,12 @@
<Solution>
<Folder Name="/Solution Items/">
<File Path=".editorconfig" />
<File Path=".gitignore" />
<File Path="Directory.Build.props" />
<File Path="LICENSE" />
<File Path="README.md" />
</Folder>
<Project Path="AssetRipper.Conversions.FastPng.ConsoleApp/AssetRipper.Conversions.FastPng.ConsoleApp.csproj" />
<Project Path="AssetRipper.Conversions.FastPng.Tests/AssetRipper.Conversions.FastPng.Tests.csproj" />
<Project Path="AssetRipper.Conversions.FastPng/AssetRipper.Conversions.FastPng.csproj" />
</Solution>
@@ -14,7 +14,7 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="System.Numerics.Tensors" Version="10.0.0-preview.5.25277.114" />
<PackageReference Include="System.Numerics.Tensors" Version="10.0.0" />
</ItemGroup>
<ItemGroup>
+5 -5
View File
@@ -23,8 +23,8 @@ public static partial class FPng
}
byte[] result;
std_vector vector = default;
std_vector* vectorPtr = &vector;
std_vector_4tqn2f vector = default;
std_vector_4tqn2f* vectorPtr = &vector;
vector_unsigned_char_class_std_allocator_unsigned_char_Constructor(vectorPtr); // Constructor
try
{
@@ -41,10 +41,10 @@ public static partial class FPng
return result;
}
static unsafe ReadOnlySpan<T> AsSpan<T>(this std_vector vector) where T : unmanaged
static unsafe ReadOnlySpan<T> AsSpan<T>(this std_vector_4tqn2f vector) where T : unmanaged
{
T* startPtr = (T*)vector.field_0.field_0.field_0;
T* endPtr = (T*)vector.field_0.field_0.field_1;
T* startPtr = (T*)vector.Mypair.Myval2.Myfirst;
T* endPtr = (T*)vector.Mypair.Myval2.Mylast;
int length = (int)(endPtr - startPtr);
return new ReadOnlySpan<T>(startPtr, length);
}
@@ -0,0 +1,23 @@
using AssetRipper.Conversions.FastPng.Helpers;
namespace AssetRipper.Conversions.FastPng.Enumerations;
[MangledName(".?AW4<unnamed-enum-FPNG_DECODE_SUCCESS>@fpng@@")]
[DemangledName("enum fpng::<unnamed-enum-FPNG_DECODE_SUCCESS>")]
[CleanName("fpng_unnamed_enum")]
public enum fpng_unnamed_enum_3g2hf2
{
FPNG_DECODE_SUCCESS,
FPNG_DECODE_NOT_FPNG,
FPNG_DECODE_INVALID_ARG,
FPNG_DECODE_FAILED_NOT_PNG,
FPNG_DECODE_FAILED_HEADER_CRC32,
FPNG_DECODE_FAILED_INVALID_DIMENSIONS,
FPNG_DECODE_FAILED_DIMENSIONS_TOO_LARGE,
FPNG_DECODE_FAILED_CHUNK_PARSING,
FPNG_DECODE_FAILED_INVALID_IDAT,
FPNG_DECODE_FILE_OPEN_FAILED,
FPNG_DECODE_FILE_TOO_LARGE,
FPNG_DECODE_FILE_READ_FAILED,
FPNG_DECODE_FILE_SEEK_FAILED
}
@@ -0,0 +1,19 @@
using AssetRipper.Conversions.FastPng.Helpers;
namespace AssetRipper.Conversions.FastPng.Enumerations;
[MangledName(".?AW4<unnamed-enum-DEFL_MAX_HUFF_TABLES>@fpng@@")]
[DemangledName("enum fpng::<unnamed-enum-DEFL_MAX_HUFF_TABLES>")]
[CleanName("fpng_unnamed_enum")]
public enum fpng_unnamed_enum_ihbtk7
{
DEFL_MAX_HUFF_TABLES = 3,
DEFL_MAX_HUFF_SYMBOLS = 288,
DEFL_MAX_HUFF_SYMBOLS_0 = 288,
DEFL_MAX_HUFF_SYMBOLS_1 = 32,
DEFL_MAX_HUFF_SYMBOLS_2 = 19,
DEFL_LZ_DICT_SIZE = 32768,
DEFL_LZ_DICT_SIZE_MASK = 32767,
DEFL_MIN_MATCH_LEN = 3,
DEFL_MAX_MATCH_LEN = 258
}
@@ -0,0 +1,12 @@
using AssetRipper.Conversions.FastPng.Helpers;
namespace AssetRipper.Conversions.FastPng.Enumerations;
[MangledName(".?AW4<unnamed-enum-FPNG_ENCODE_SLOWER>@fpng@@")]
[DemangledName("enum fpng::<unnamed-enum-FPNG_ENCODE_SLOWER>")]
[CleanName("fpng_unnamed_enum")]
public enum fpng_unnamed_enum_nyjp8v
{
FPNG_ENCODE_SLOWER = 1,
FPNG_FORCE_UNCOMPRESSED
}
@@ -0,0 +1,11 @@
using AssetRipper.Conversions.FastPng.Helpers;
namespace AssetRipper.Conversions.FastPng.Enumerations;
[MangledName(".?AW4<unnamed-enum-DEFL_MAX_SUPPORTED_HUFF_CODESIZE>@fpng@@")]
[DemangledName("enum fpng::<unnamed-enum-DEFL_MAX_SUPPORTED_HUFF_CODESIZE>")]
[CleanName("fpng_unnamed_enum")]
public enum fpng_unnamed_enum_vmw3i4
{
DEFL_MAX_SUPPORTED_HUFF_CODESIZE = 0x20
}
File diff suppressed because it is too large. Load diff
@@ -8,18 +8,17 @@ namespace AssetRipper.Conversions.FastPng.GlobalFunctions;
[DemangledName("void __cdecl std::_Adjust_manually_vector_aligned(void *&, unsigned __int64 &)")]
internal static partial class Adjust_manually_vector_aligned
{
public unsafe static void Invoke(void* Ptr, void* Bytes)
[return: NativeType("void")]
public unsafe static void Invoke([MangledName("_Ptr")][NativeType("void *&")] void* Ptr, [MangledName("_Bytes")][NativeType("unsigned __int64 &")] void* Bytes)
{
unchecked
{
*(long*)Bytes += 39L;
long num = *(long*)((nint)(*(IntPtr*)Ptr) + -8);
long num2 = 8L;
long num3 = (long)(nuint)(*(nint*)Ptr) - num;
if ((ulong)num3 < 8uL || (ulong)num3 > 39uL)
long num2 = (long)(nuint)(*(nint*)Ptr) - num;
if ((ulong)num2 < 8uL || (ulong)num2 > 39uL)
{
invoke_watson.Invoke(null, null, null, 0, 0L);
throw null;
llvm_trap.Invoke();
}
*(IntPtr*)Ptr = (nint)num;
}
@@ -6,7 +6,8 @@ namespace AssetRipper.Conversions.FastPng.GlobalFunctions;
[DemangledName("public: void __cdecl std::_Container_base0::_Alloc_proxy(struct std::_Fake_allocator const &)")]
internal static partial class Alloc_proxy
{
public unsafe static void Invoke(void* @this, void* parameter_1)
[return: NativeType("void")]
public unsafe static void Invoke(void* @this, [NativeType("struct std::_Fake_allocator const &")] void* parameter_1)
{
}
}
@@ -0,0 +1,28 @@
using AssetRipper.Conversions.FastPng.Helpers;
namespace AssetRipper.Conversions.FastPng.GlobalFunctions;
[MangledName("??$_Allocate@$0BA@U_Default_allocate_traits@std@@@std@@YAPEAX_K@Z")]
[DemangledName("void * __cdecl std::_Allocate<16, struct std::_Default_allocate_traits>(unsigned __int64)")]
[CleanName("Allocate")]
internal static partial class Allocate_4exgpj
{
[return: NativeType("void *")]
public unsafe static void* Invoke([MangledName("_Bytes")][NativeType("unsigned __int64")] long Bytes)
{
if (Bytes == 0L)
{
return null;
}
if (unchecked((ulong)Bytes) >= 4096uL)
{
void* result = Allocate_manually_vector_aligned.Invoke(Bytes);
if (ExceptionInfo.Current != null)
{
return null;
}
return result;
}
return Allocate_q5w6zu.Invoke(Bytes);
}
}
@@ -1,30 +0,0 @@
using AssetRipper.Conversions.FastPng.Helpers;
namespace AssetRipper.Conversions.FastPng.GlobalFunctions;
[MangledName("??$_Allocate_at_least_helper@V?$allocator@I@std@@@std@@YAPEAIAEAV?$allocator@I@0@AEA_K@Z")]
[DemangledName("unsigned int * __cdecl std::_Allocate_at_least_helper<class std::allocator<unsigned int>>(class std::allocator<unsigned int> &, unsigned __int64 &)")]
[CleanName("Allocate_at_least_helper")]
internal static partial class Allocate_at_least_helper_22hwyxd
{
private partial struct LocalVariables
{
public unsafe void* Instruction_0;
public unsafe void* Instruction_1;
}
public unsafe static void* Invoke(void* Al, void* Count)
{
StackFrame startFrame = StackFrameList.Current.New<LocalVariables>();
startFrame.GetLocalsRef<LocalVariables>().Instruction_0 = Count;
startFrame.GetLocalsRef<LocalVariables>().Instruction_1 = Al;
void* result = allocate_wor4ptd.Invoke(startFrame.GetLocalsRef<LocalVariables>().Instruction_1, *unchecked((long*)startFrame.GetLocalsRef<LocalVariables>().Instruction_0));
if (ExceptionInfo.Current != null)
{
return null;
}
StackFrameList.Current.Clear(startFrame);
return result;
}
}
@@ -0,0 +1,20 @@
using AssetRipper.Conversions.FastPng.Helpers;
namespace AssetRipper.Conversions.FastPng.GlobalFunctions;
[MangledName("??$_Allocate_at_least_helper@V?$allocator@_K@std@@@std@@YAPEA_KAEAV?$allocator@_K@0@AEA_K@Z")]
[DemangledName("unsigned __int64 * __cdecl std::_Allocate_at_least_helper<class std::allocator<unsigned __int64>>(class std::allocator<unsigned __int64> &, unsigned __int64 &)")]
[CleanName("Allocate_at_least_helper")]
internal static partial class Allocate_at_least_helper_2ny77t
{
[return: NativeType("unsigned __int64 *")]
public unsafe static void* Invoke([MangledName("_Al")][NativeType("class std::allocator<unsigned __int64> &")] void* Al, [MangledName("_Count")][NativeType("unsigned __int64 &")] void* Count)
{
void* result = allocate_hfyt8m.Invoke(Al, *unchecked((long*)Count));
if (ExceptionInfo.Current != null)
{
return null;
}
return result;
}
}
@@ -0,0 +1,20 @@
using AssetRipper.Conversions.FastPng.Helpers;
namespace AssetRipper.Conversions.FastPng.GlobalFunctions;
[MangledName("??$_Allocate_at_least_helper@V?$allocator@I@std@@@std@@YAPEAIAEAV?$allocator@I@0@AEA_K@Z")]
[DemangledName("unsigned int * __cdecl std::_Allocate_at_least_helper<class std::allocator<unsigned int>>(class std::allocator<unsigned int> &, unsigned __int64 &)")]
[CleanName("Allocate_at_least_helper")]
internal static partial class Allocate_at_least_helper_cyykju
{
[return: NativeType("unsigned int *")]
public unsafe static void* Invoke([MangledName("_Al")][NativeType("class std::allocator<unsigned int> &")] void* Al, [MangledName("_Count")][NativeType("unsigned __int64 &")] void* Count)
{
void* result = allocate_r4t6j4.Invoke(Al, *unchecked((long*)Count));
if (ExceptionInfo.Current != null)
{
return null;
}
return result;
}
}
@@ -0,0 +1,20 @@
using AssetRipper.Conversions.FastPng.Helpers;
namespace AssetRipper.Conversions.FastPng.GlobalFunctions;
[MangledName("??$_Allocate_at_least_helper@V?$allocator@E@std@@@std@@YAPEAEAEAV?$allocator@E@0@AEA_K@Z")]
[DemangledName("unsigned char * __cdecl std::_Allocate_at_least_helper<class std::allocator<unsigned char>>(class std::allocator<unsigned char> &, unsigned __int64 &)")]
[CleanName("Allocate_at_least_helper")]
internal static partial class Allocate_at_least_helper_da8z8c
{
[return: NativeType("unsigned char *")]
public unsafe static void* Invoke([MangledName("_Al")][NativeType("class std::allocator<unsigned char> &")] void* Al, [MangledName("_Count")][NativeType("unsigned __int64 &")] void* Count)
{
void* result = allocate_7uvktt.Invoke(Al, *unchecked((long*)Count));
if (ExceptionInfo.Current != null)
{
return null;
}
return result;
}
}
@@ -1,30 +0,0 @@
using AssetRipper.Conversions.FastPng.Helpers;
namespace AssetRipper.Conversions.FastPng.GlobalFunctions;
[MangledName("??$_Allocate_at_least_helper@V?$allocator@_K@std@@@std@@YAPEA_KAEAV?$allocator@_K@0@AEA_K@Z")]
[DemangledName("unsigned __int64 * __cdecl std::_Allocate_at_least_helper<class std::allocator<unsigned __int64>>(class std::allocator<unsigned __int64> &, unsigned __int64 &)")]
[CleanName("Allocate_at_least_helper")]
internal static partial class Allocate_at_least_helper_l9zi7qb
{
private partial struct LocalVariables
{
public unsafe void* Instruction_0;
public unsafe void* Instruction_1;
}
public unsafe static void* Invoke(void* Al, void* Count)
{
StackFrame startFrame = StackFrameList.Current.New<LocalVariables>();
startFrame.GetLocalsRef<LocalVariables>().Instruction_0 = Count;
startFrame.GetLocalsRef<LocalVariables>().Instruction_1 = Al;
void* result = allocate_4vpkydd.Invoke(startFrame.GetLocalsRef<LocalVariables>().Instruction_1, *unchecked((long*)startFrame.GetLocalsRef<LocalVariables>().Instruction_0));
if (ExceptionInfo.Current != null)
{
return null;
}
StackFrameList.Current.Clear(startFrame);
return result;
}
}
@@ -1,30 +0,0 @@
using AssetRipper.Conversions.FastPng.Helpers;
namespace AssetRipper.Conversions.FastPng.GlobalFunctions;
[MangledName("??$_Allocate_at_least_helper@V?$allocator@E@std@@@std@@YAPEAEAEAV?$allocator@E@0@AEA_K@Z")]
[DemangledName("unsigned char * __cdecl std::_Allocate_at_least_helper<class std::allocator<unsigned char>>(class std::allocator<unsigned char> &, unsigned __int64 &)")]
[CleanName("Allocate_at_least_helper")]
internal static partial class Allocate_at_least_helper_wikabbc
{
private partial struct LocalVariables
{
public unsafe void* Instruction_0;
public unsafe void* Instruction_1;
}
public unsafe static void* Invoke(void* Al, void* Count)
{
StackFrame startFrame = StackFrameList.Current.New<LocalVariables>();
startFrame.GetLocalsRef<LocalVariables>().Instruction_0 = Count;
startFrame.GetLocalsRef<LocalVariables>().Instruction_1 = Al;
void* result = allocate_qfop4bd.Invoke(startFrame.GetLocalsRef<LocalVariables>().Instruction_1, *unchecked((long*)startFrame.GetLocalsRef<LocalVariables>().Instruction_0));
if (ExceptionInfo.Current != null)
{
return null;
}
StackFrameList.Current.Clear(startFrame);
return result;
}
}
@@ -1,43 +0,0 @@
using AssetRipper.Conversions.FastPng.Helpers;
namespace AssetRipper.Conversions.FastPng.GlobalFunctions;
[MangledName("??$_Allocate@$0BA@U_Default_allocate_traits@std@@@std@@YAPEAX_K@Z")]
[DemangledName("void * __cdecl std::_Allocate<16, struct std::_Default_allocate_traits>(unsigned __int64)")]
[CleanName("Allocate")]
internal static partial class Allocate_i4jzs2a
{
private partial struct LocalVariables
{
public unsafe void* Instruction_0;
public long Instruction_1;
}
public unsafe static void* Invoke(long Bytes)
{
StackFrame startFrame = StackFrameList.Current.New<LocalVariables>();
startFrame.GetLocalsRef<LocalVariables>().Instruction_1 = Bytes;
if (startFrame.GetLocalsRef<LocalVariables>().Instruction_1 == 0L)
{
startFrame.GetLocalsRef<LocalVariables>().Instruction_0 = null;
}
else if (unchecked((ulong)startFrame.GetLocalsRef<LocalVariables>().Instruction_1) >= 4096uL)
{
void* instruction_ = Allocate_manually_vector_aligned.Invoke(startFrame.GetLocalsRef<LocalVariables>().Instruction_1);
if (ExceptionInfo.Current != null)
{
return null;
}
startFrame.GetLocalsRef<LocalVariables>().Instruction_0 = instruction_;
}
else
{
void* instruction_2 = Allocate_ifu7fia.Invoke(startFrame.GetLocalsRef<LocalVariables>().Instruction_1);
startFrame.GetLocalsRef<LocalVariables>().Instruction_0 = instruction_2;
}
void* instruction_3 = startFrame.GetLocalsRef<LocalVariables>().Instruction_0;
StackFrameList.Current.Clear(startFrame);
return instruction_3;
}
}
@@ -7,26 +7,13 @@ namespace AssetRipper.Conversions.FastPng.GlobalFunctions;
[DemangledName("void * __cdecl std::_Allocate_manually_vector_aligned<struct std::_Default_allocate_traits>(unsigned __int64)")]
internal static partial class Allocate_manually_vector_aligned
{
private partial struct LocalVariables
[return: NativeType("void *")]
public unsafe static void* Invoke([MangledName("_Bytes")][NativeType("unsigned __int64")] long Bytes)
{
public long Instruction_0;
public long Instruction_1;
public long Instruction_2;
public unsafe void* Instruction_3;
}
public unsafe static void* Invoke(long Bytes)
{
StackFrame startFrame = StackFrameList.Current.New<LocalVariables>();
startFrame.GetLocalsRef<LocalVariables>().Instruction_0 = Bytes;
long instruction_ = startFrame.GetLocalsRef<LocalVariables>().Instruction_0;
unchecked
{
startFrame.GetLocalsRef<LocalVariables>().Instruction_1 = 39L + instruction_;
if ((ulong)startFrame.GetLocalsRef<LocalVariables>().Instruction_1 <= (ulong)startFrame.GetLocalsRef<LocalVariables>().Instruction_0)
long num = 39L + Bytes;
if ((ulong)num <= (ulong)Bytes)
{
Throw_bad_array_new_length.Invoke();
if (ExceptionInfo.Current != null)
@@ -35,20 +22,14 @@ internal static partial class Allocate_manually_vector_aligned
}
throw null;
}
void* ptr = Allocate_ifu7fia.Invoke(startFrame.GetLocalsRef<LocalVariables>().Instruction_1);
startFrame.GetLocalsRef<LocalVariables>().Instruction_2 = (long)ptr;
if (startFrame.GetLocalsRef<LocalVariables>().Instruction_2 == 0L)
long num2 = (long)Allocate_q5w6zu.Invoke(num);
if (num2 == 0L)
{
invoke_watson.Invoke(null, null, null, 0, 0L);
throw null;
llvm_trap.Invoke();
}
long instruction_2 = startFrame.GetLocalsRef<LocalVariables>().Instruction_2;
startFrame.GetLocalsRef<LocalVariables>().Instruction_3 = (void*)((instruction_2 + 39L) & -32L);
long instruction_3 = startFrame.GetLocalsRef<LocalVariables>().Instruction_2;
*(long*)((byte*)startFrame.GetLocalsRef<LocalVariables>().Instruction_3 + -8) = instruction_3;
void* instruction_4 = startFrame.GetLocalsRef<LocalVariables>().Instruction_3;
StackFrameList.Current.Clear(startFrame);
return instruction_4;
void* ptr = (void*)((num2 + 39L) & -32L);
*(long*)((byte*)ptr + -8) = num2;
return ptr;
}
}
}
@@ -6,9 +6,10 @@ namespace AssetRipper.Conversions.FastPng.GlobalFunctions;
[MangledName("?_Allocate@_Default_allocate_traits@std@@SAPEAX_K@Z")]
[DemangledName("public: static void * __cdecl std::_Default_allocate_traits::_Allocate(unsigned __int64)")]
[CleanName("Allocate")]
internal static partial class Allocate_ifu7fia
internal static partial class Allocate_q5w6zu
{
public unsafe static void* Invoke(long Bytes)
[return: NativeType("void *")]
public unsafe static void* Invoke([MangledName("_Bytes")][NativeType("unsigned __int64")] long Bytes)
{
return New.Invoke(Bytes);
}
@@ -6,28 +6,14 @@ namespace AssetRipper.Conversions.FastPng.GlobalFunctions;
[DemangledName("private: void __cdecl std::vector<unsigned int, class std::allocator<unsigned int>>::_Buy_nonzero(unsigned __int64)")]
internal static partial class Buy_nonzero
{
private partial struct LocalVariables
[return: NativeType("void")]
public unsafe static void Invoke(void* @this, [MangledName("_Newcapacity")][NativeType("unsigned __int64")] long Newcapacity)
{
public long Instruction_0;
public unsafe void* Instruction_1;
}
public unsafe static void Invoke(void* @this, long Newcapacity)
{
StackFrame startFrame = StackFrameList.Current.New<LocalVariables>();
startFrame.GetLocalsRef<LocalVariables>().Instruction_0 = Newcapacity;
startFrame.GetLocalsRef<LocalVariables>().Instruction_1 = @this;
void* instruction_ = startFrame.GetLocalsRef<LocalVariables>().Instruction_1;
if (unchecked((ulong)startFrame.GetLocalsRef<LocalVariables>().Instruction_0 > (ulong)max_size_qdwnpha.Invoke(instruction_)))
if (unchecked((ulong)Newcapacity > (ulong)max_size_2ddmdn.Invoke(@this)))
{
Xlength_nubzgpc.Invoke();
Xlength_255g3z.Invoke();
throw null;
}
Buy_raw.Invoke(instruction_, startFrame.GetLocalsRef<LocalVariables>().Instruction_0);
if (ExceptionInfo.Current == null)
{
StackFrameList.Current.Clear(startFrame);
}
Buy_raw.Invoke(@this, Newcapacity);
}
}
@@ -9,49 +9,25 @@ internal static partial class Buy_raw
{
private partial struct LocalVariables
{
public long Instruction_0;
public unsafe void* Instruction_1;
public unsafe void* Instruction_2;
public unsafe void* Instruction_3;
public unsafe void* Instruction_4;
public unsafe void* Instruction_5;
public unsafe void* Instruction_6;
public long field_0;
}
public unsafe static void Invoke(void* @this, long Newcapacity)
[return: NativeType("void")]
public unsafe static void Invoke(void* @this, [MangledName("_Newcapacity")][NativeType("unsigned __int64")] long Newcapacity)
{
StackFrame startFrame = StackFrameList.Current.New<LocalVariables>();
long* count = &startFrame.GetLocalsPointer<LocalVariables>()->Instruction_0;
startFrame.GetLocalsRef<LocalVariables>().Instruction_0 = Newcapacity;
startFrame.GetLocalsRef<LocalVariables>().Instruction_1 = @this;
void* instruction_ = startFrame.GetLocalsRef<LocalVariables>().Instruction_1;
LocalVariables* localsPointer = startFrame.GetLocalsPointer<LocalVariables>();
localsPointer->field_0 = Newcapacity;
unchecked
{
std_Vector_val_4* field_ = &((std_vector_0*)instruction_)->field_0.field_0;
startFrame.GetLocalsRef<LocalVariables>().Instruction_2 = field_;
void** field_2 = &((std_Vector_val_4*)startFrame.GetLocalsRef<LocalVariables>().Instruction_2)->field_0;
startFrame.GetLocalsRef<LocalVariables>().Instruction_3 = field_2;
void** field_3 = &((std_Vector_val_4*)startFrame.GetLocalsRef<LocalVariables>().Instruction_2)->field_1;
startFrame.GetLocalsRef<LocalVariables>().Instruction_4 = field_3;
void** field_4 = &((std_Vector_val_4*)startFrame.GetLocalsRef<LocalVariables>().Instruction_2)->field_2;
startFrame.GetLocalsRef<LocalVariables>().Instruction_5 = field_4;
void* instruction_2 = Allocate_at_least_helper_22hwyxd.Invoke(Getal_t2pmqoc.Invoke(instruction_), count);
void* myval = &((std_vector_jsyy6a*)@this)->Mypair.Myval2;
void* myfirst = &((std_Vector_val_fju23j*)myval)->Myfirst;
void* mylast = &((std_Vector_val_fju23j*)myval)->Mylast;
void* myend = &((std_Vector_val_fju23j*)myval)->Myend;
void* ptr = Allocate_at_least_helper_cyykju.Invoke(Getal_jb66tx.Invoke(@this), &localsPointer->field_0);
if (ExceptionInfo.Current == null)
{
startFrame.GetLocalsRef<LocalVariables>().Instruction_6 = instruction_2;
void* instruction_3 = startFrame.GetLocalsRef<LocalVariables>().Instruction_6;
*(void**)startFrame.GetLocalsRef<LocalVariables>().Instruction_3 = instruction_3;
void* instruction_4 = startFrame.GetLocalsRef<LocalVariables>().Instruction_6;
*(void**)startFrame.GetLocalsRef<LocalVariables>().Instruction_4 = instruction_4;
void* instruction_5 = startFrame.GetLocalsRef<LocalVariables>().Instruction_6;
long instruction_6 = startFrame.GetLocalsRef<LocalVariables>().Instruction_0;
*(byte**)startFrame.GetLocalsRef<LocalVariables>().Instruction_5 = (byte*)instruction_5 + (nint)instruction_6 * 4;
*(byte**)myend = (byte*)(*(void**)mylast = (*(void**)myfirst = ptr)) + (nint)localsPointer->field_0 * 4;
StackFrameList.Current.Clear(startFrame);
}
}
@@ -5,25 +5,25 @@ namespace AssetRipper.Conversions.FastPng.GlobalFunctions;
[MangledName("?_Calculate_growth@?$vector@_KV?$allocator@_K@std@@@std@@AEBA_K_K@Z")]
[DemangledName("private: unsigned __int64 __cdecl std::vector<unsigned __int64, class std::allocator<unsigned __int64>>::_Calculate_growth(unsigned __int64) const")]
[CleanName("Calculate_growth")]
internal static partial class Calculate_growth_vbhwmec
internal static partial class Calculate_growth_2ntm6t
{
public unsafe static long Invoke(void* @this, long Newsize)
[return: NativeType("unsigned __int64")]
public unsafe static long Invoke(void* @this, [MangledName("_Newsize")][NativeType("unsigned __int64")] long Newsize)
{
long num = capacity_f49yk4c.Invoke(@this);
long num2 = max_size_kyvxnnb.Invoke(@this);
long num = capacity_e227dw.Invoke(@this);
long num2 = max_size_t88hhi.Invoke(@this);
unchecked
{
long result;
if ((ulong)num > (ulong)(num2 - (long)((ulong)num / 2uL)))
{
result = num2;
return num2;
}
else
long num3 = num + (long)((ulong)num / 2uL);
if ((ulong)num3 < (ulong)Newsize)
{
long num3 = num + (long)((ulong)num / 2uL);
result = (((ulong)num3 >= (ulong)Newsize) ? num3 : Newsize);
return Newsize;
}
return result;
return num3;
}
}
}
@@ -5,25 +5,25 @@ namespace AssetRipper.Conversions.FastPng.GlobalFunctions;
[MangledName("?_Calculate_growth@?$vector@EV?$allocator@E@std@@@std@@AEBA_K_K@Z")]
[DemangledName("private: unsigned __int64 __cdecl std::vector<unsigned char, class std::allocator<unsigned char>>::_Calculate_growth(unsigned __int64) const")]
[CleanName("Calculate_growth")]
internal static partial class Calculate_growth_scmxisc
internal static partial class Calculate_growth_xjnsmq
{
public unsafe static long Invoke(void* @this, long Newsize)
[return: NativeType("unsigned __int64")]
public unsafe static long Invoke(void* @this, [MangledName("_Newsize")][NativeType("unsigned __int64")] long Newsize)
{
long num = capacity_mz5ysja.Invoke(@this);
long num2 = max_size_2yjes5b.Invoke(@this);
long num = capacity_zpcf72.Invoke(@this);
long num2 = max_size_zqnixi.Invoke(@this);
unchecked
{
long result;
if ((ulong)num > (ulong)(num2 - (long)((ulong)num / 2uL)))
{
result = num2;
return num2;
}
else
long num3 = num + (long)((ulong)num / 2uL);
if ((ulong)num3 < (ulong)Newsize)
{
long num3 = num + (long)((ulong)num / 2uL);
result = (((ulong)num3 >= (ulong)Newsize) ? num3 : Newsize);
return Newsize;
}
return result;
return num3;
}
}
}
@@ -0,0 +1,33 @@
using System;
using AssetRipper.Conversions.FastPng.Helpers;
using AssetRipper.Conversions.FastPng.Structures;
namespace AssetRipper.Conversions.FastPng.GlobalFunctions;
[MangledName("?_Change_array@?$vector@EV?$allocator@E@std@@@std@@AEAAXQEAE_K1@Z")]
[DemangledName("private: void __cdecl std::vector<unsigned char, class std::allocator<unsigned char>>::_Change_array(unsigned char *const, unsigned __int64, unsigned __int64)")]
[CleanName("Change_array")]
internal static partial class Change_array_2dpfnj
{
[return: NativeType("void")]
public unsafe static void Invoke(void* @this, [MangledName("_Newvec")][NativeType("unsigned char *const")] void* Newvec, [MangledName("_Newsize")][NativeType("unsigned __int64")] long Newsize, [MangledName("_Newcapacity")][NativeType("unsigned __int64")] long Newcapacity)
{
void* ptr = Getal_vpqbcr.Invoke(@this);
unchecked
{
void* myval = &((std_vector_4tqn2f*)@this)->Mypair.Myval2;
void* myfirst = &((std_Vector_val_ghsspe*)myval)->Myfirst;
void* mylast = &((std_Vector_val_ghsspe*)myval)->Mylast;
void* myend = &((std_Vector_val_ghsspe*)myval)->Myend;
Orphan_all.Invoke(myval);
if (*(IntPtr*)myfirst != (IntPtr)(nint)0)
{
Destroy_range_6evibt.Invoke(Al: ptr, Last: *(void**)mylast, First: *(void**)myfirst);
deallocate_572ymf.Invoke(ptr, Count: (long)(nuint)(*(nint*)myend) - (long)(nuint)(*(nint*)myfirst), Ptr: *(void**)myfirst);
}
*(void**)myfirst = Newvec;
*(byte**)mylast = (byte*)Newvec + Newsize;
*(byte**)myend = (byte*)Newvec + Newcapacity;
}
}
}
@@ -1,32 +0,0 @@
using System;
using AssetRipper.Conversions.FastPng.Helpers;
using AssetRipper.Conversions.FastPng.Structures;
namespace AssetRipper.Conversions.FastPng.GlobalFunctions;
[MangledName("?_Change_array@?$vector@_KV?$allocator@_K@std@@@std@@AEAAXQEA_K_K1@Z")]
[DemangledName("private: void __cdecl std::vector<unsigned __int64, class std::allocator<unsigned __int64>>::_Change_array(unsigned __int64 *const, unsigned __int64, unsigned __int64)")]
[CleanName("Change_array")]
internal static partial class Change_array_hgqy2vc
{
public unsafe static void Invoke(void* @this, void* Newvec, long Newsize, long Newcapacity)
{
void* ptr = Getal_kuj7nva.Invoke(@this);
unchecked
{
void* field_ = &((std_vector_5*)@this)->field_0.field_0;
void* field_2 = &((std_Vector_val_9*)field_)->field_0;
void* field_3 = &((std_Vector_val_9*)field_)->field_1;
void* field_4 = &((std_Vector_val_9*)field_)->field_2;
Orphan_all.Invoke(field_);
if (*(IntPtr*)field_2 != (IntPtr)(nint)0)
{
Destroy_range_qbzp7xb.Invoke(Al: ptr, Last: *(void**)field_3, First: *(void**)field_2);
deallocate_yb2gvqa.Invoke(ptr, Count: ((long)(nuint)(*(nint*)field_4) - (long)(nuint)(*(nint*)field_2)) / 8L, Ptr: *(void**)field_2);
}
*(void**)field_2 = Newvec;
*(byte**)field_3 = (byte*)Newvec + (nint)Newsize * 8;
*(byte**)field_4 = (byte*)Newvec + (nint)Newcapacity * 8;
}
}
}
@@ -1,32 +0,0 @@
using System;
using AssetRipper.Conversions.FastPng.Helpers;
using AssetRipper.Conversions.FastPng.Structures;
namespace AssetRipper.Conversions.FastPng.GlobalFunctions;
[MangledName("?_Change_array@?$vector@EV?$allocator@E@std@@@std@@AEAAXQEAE_K1@Z")]
[DemangledName("private: void __cdecl std::vector<unsigned char, class std::allocator<unsigned char>>::_Change_array(unsigned char *const, unsigned __int64, unsigned __int64)")]
[CleanName("Change_array")]
internal static partial class Change_array_k9lpzqa
{
public unsafe static void Invoke(void* @this, void* Newvec, long Newsize, long Newcapacity)
{
void* ptr = Getal_jms5hzb.Invoke(@this);
unchecked
{
void* field_ = &((std_vector*)@this)->field_0.field_0;
void* field_2 = &((std_Vector_val*)field_)->field_0;
void* field_3 = &((std_Vector_val*)field_)->field_1;
void* field_4 = &((std_Vector_val*)field_)->field_2;
Orphan_all.Invoke(field_);
if (*(IntPtr*)field_2 != (IntPtr)(nint)0)
{
Destroy_range_jjcob5a.Invoke(Al: ptr, Last: *(void**)field_3, First: *(void**)field_2);
deallocate_mc9rbjc.Invoke(ptr, Count: (long)(nuint)(*(nint*)field_4) - (long)(nuint)(*(nint*)field_2), Ptr: *(void**)field_2);
}
*(void**)field_2 = Newvec;
*(byte**)field_3 = (byte*)Newvec + Newsize;
*(byte**)field_4 = (byte*)Newvec + Newcapacity;
}
}
}
@@ -0,0 +1,33 @@
using System;
using AssetRipper.Conversions.FastPng.Helpers;
using AssetRipper.Conversions.FastPng.Structures;
namespace AssetRipper.Conversions.FastPng.GlobalFunctions;
[MangledName("?_Change_array@?$vector@_KV?$allocator@_K@std@@@std@@AEAAXQEA_K_K1@Z")]
[DemangledName("private: void __cdecl std::vector<unsigned __int64, class std::allocator<unsigned __int64>>::_Change_array(unsigned __int64 *const, unsigned __int64, unsigned __int64)")]
[CleanName("Change_array")]
internal static partial class Change_array_nieg7e
{
[return: NativeType("void")]
public unsafe static void Invoke(void* @this, [MangledName("_Newvec")][NativeType("unsigned __int64 *const")] void* Newvec, [MangledName("_Newsize")][NativeType("unsigned __int64")] long Newsize, [MangledName("_Newcapacity")][NativeType("unsigned __int64")] long Newcapacity)
{
void* ptr = Getal_ie7hg9.Invoke(@this);
unchecked
{
void* myval = &((std_vector_ucmdxb*)@this)->Mypair.Myval2;
void* myfirst = &((std_Vector_val_i7igbu*)myval)->Myfirst;
void* mylast = &((std_Vector_val_i7igbu*)myval)->Mylast;
void* myend = &((std_Vector_val_i7igbu*)myval)->Myend;
Orphan_all.Invoke(myval);
if (*(IntPtr*)myfirst != (IntPtr)(nint)0)
{
Destroy_range_eprs33.Invoke(Al: ptr, Last: *(void**)mylast, First: *(void**)myfirst);
deallocate_hcscub.Invoke(ptr, Count: ((long)(nuint)(*(nint*)myend) - (long)(nuint)(*(nint*)myfirst)) / 8L, Ptr: *(void**)myfirst);
}
*(void**)myfirst = Newvec;
*(byte**)mylast = (byte*)Newvec + (nint)Newsize * 8;
*(byte**)myend = (byte*)Newvec + (nint)Newcapacity * 8;
}
}
}
@@ -7,12 +7,14 @@ namespace AssetRipper.Conversions.FastPng.GlobalFunctions;
[DemangledName("public: __cdecl std::_Compressed_pair<class std::allocator<unsigned char>, class std::_Vector_val<struct std::_Simple_types<unsigned char>>, 1>::_Compressed_pair<class std::allocator<unsigned char>, class std::_Vector_val<struct std::_Simple_types<unsigned char>>, 1><>(struct std::_Zero_then_variadic_args_t)")]
internal static partial class Compressed_pair_class_std_allocator_unsigned_char_class_std_Vector_val_struct_std_Simple_types_unsigned_char_1_Constructor
{
public unsafe static void* Invoke(void* @this, sbyte coerce)
public unsafe static void* Invoke(void* @this, [MangledName(".coerce")][NativeType("struct std::_Zero_then_variadic_args_t")] sbyte coerce)
{
std_Zero_then_variadic_args_t std_Zero_then_variadic_args_t = default(std_Zero_then_variadic_args_t);
std_Zero_then_variadic_args_t.field_0 = coerce;
std_Zero_then_variadic_args_t std_Zero_then_variadic_args_t2 = new std_Zero_then_variadic_args_t
{
field_0 = coerce
};
allocator_unsigned_char_Constructor.Invoke(@this);
Vector_val_struct_std_Simple_types_unsigned_char_Constructor.Invoke(&unchecked((std_Compressed_pair*)@this)->field_0);
Vector_val_struct_std_Simple_types_unsigned_char_Constructor.Invoke(&unchecked((std_Compressed_pair_icp8g8*)@this)->Myval2);
return @this;
}
}
@@ -7,12 +7,14 @@ namespace AssetRipper.Conversions.FastPng.GlobalFunctions;
[DemangledName("public: __cdecl std::_Compressed_pair<class std::allocator<unsigned __int64>, class std::_Vector_val<struct std::_Simple_types<unsigned __int64>>, 1>::_Compressed_pair<class std::allocator<unsigned __int64>, class std::_Vector_val<struct std::_Simple_types<unsigned __int64>>, 1><>(struct std::_Zero_then_variadic_args_t)")]
internal static partial class Compressed_pair_class_std_allocator_unsigned_int64_class_std_Vector_val_struct_std_Simple_types_unsigned_int64_1_Constructor
{
public unsafe static void* Invoke(void* @this, sbyte coerce)
public unsafe static void* Invoke(void* @this, [MangledName(".coerce")][NativeType("struct std::_Zero_then_variadic_args_t")] sbyte coerce)
{
std_Zero_then_variadic_args_t std_Zero_then_variadic_args_t = default(std_Zero_then_variadic_args_t);
std_Zero_then_variadic_args_t.field_0 = coerce;
std_Zero_then_variadic_args_t std_Zero_then_variadic_args_t2 = new std_Zero_then_variadic_args_t
{
field_0 = coerce
};
allocator_unsigned_int64_Constructor.Invoke(@this);
Vector_val_struct_std_Simple_types_unsigned_int64_Constructor.Invoke(&unchecked((std_Compressed_pair_6*)@this)->field_0);
Vector_val_struct_std_Simple_types_unsigned_int64_Constructor.Invoke(&unchecked((std_Compressed_pair_fp3k7r*)@this)->Myval2);
return @this;
}
}
@@ -7,11 +7,13 @@ namespace AssetRipper.Conversions.FastPng.GlobalFunctions;
[DemangledName("public: __cdecl std::_Compressed_pair<class std::allocator<unsigned int>, class std::_Vector_val<struct std::_Simple_types<unsigned int>>, 1>::_Compressed_pair<class std::allocator<unsigned int>, class std::_Vector_val<struct std::_Simple_types<unsigned int>>, 1><class std::allocator<unsigned int> const &>(struct std::_One_then_variadic_args_t, class std::allocator<unsigned int> const &)")]
internal static partial class Compressed_pair_class_std_allocator_unsigned_int_class_std_Vector_val_struct_std_Simple_types_unsigned_int_1_Constructor
{
public unsafe static void* Invoke(void* @this, sbyte coerce, void* Val1)
public unsafe static void* Invoke(void* @this, [MangledName(".coerce")][NativeType("struct std::_One_then_variadic_args_t")] sbyte coerce, [MangledName("_Val1")][NativeType("class std::allocator<unsigned int> const &")] void* Val1)
{
std_One_then_variadic_args_t std_One_then_variadic_args_t = default(std_One_then_variadic_args_t);
std_One_then_variadic_args_t.field_0 = coerce;
Vector_val_struct_std_Simple_types_unsigned_int_Constructor.Invoke(&unchecked((std_Compressed_pair_1*)@this)->field_0);
std_One_then_variadic_args_t std_One_then_variadic_args_t2 = new std_One_then_variadic_args_t
{
field_0 = coerce
};
Vector_val_struct_std_Simple_types_unsigned_int_Constructor.Invoke(&unchecked((std_Compressed_pair_cqk3em*)@this)->Myval2);
return @this;
}
}
@@ -9,62 +9,49 @@ internal static partial class Construct_n
{
private partial struct LocalVariables
{
public long Instruction_0;
public std_Fake_allocator field_0;
public unsafe void* Instruction_1;
public std_Fake_proxy_ptr_impl field_1;
public unsafe void* Instruction_2;
public unsafe void* Instruction_3;
public std_Fake_allocator Instruction_4;
public unsafe void* Instruction_5;
public std_Fake_proxy_ptr_impl Instruction_6;
public std_Tidy_guard Instruction_7;
public std_Tidy_guard field_2;
}
public unsafe static void Invoke(void* @this, long Count)
[return: NativeType("void")]
public unsafe static void Invoke(void* @this, [MangledName("_Count")][NativeType("unsigned __int64")] long Count)
{
StackFrame startFrame = StackFrameList.Current.New<LocalVariables>();
std_Fake_allocator* instruction_ = &startFrame.GetLocalsPointer<LocalVariables>()->Instruction_4;
std_Fake_proxy_ptr_impl* ptr = &startFrame.GetLocalsPointer<LocalVariables>()->Instruction_6;
std_Tidy_guard* ptr2 = &startFrame.GetLocalsPointer<LocalVariables>()->Instruction_7;
startFrame.GetLocalsRef<LocalVariables>().Instruction_0 = Count;
startFrame.GetLocalsRef<LocalVariables>().Instruction_1 = @this;
void* instruction_2 = startFrame.GetLocalsRef<LocalVariables>().Instruction_1;
void* instruction_3 = Getal_t2pmqoc.Invoke(instruction_2);
startFrame.GetLocalsRef<LocalVariables>().Instruction_2 = instruction_3;
startFrame.GetLocalsRef<LocalVariables>().Instruction_3 = instruction_;
LocalVariables* localsPointer = startFrame.GetLocalsPointer<LocalVariables>();
localsPointer->field_0 = default(std_Fake_allocator);
localsPointer->field_1 = default(std_Fake_proxy_ptr_impl);
localsPointer->field_2 = default(std_Tidy_guard);
void* ptr = Getal_jb66tx.Invoke(@this);
Get_proxy_allocator_r4aa37.Invoke(ptr);
unchecked
{
std_Vector_val_4* field_ = &((std_vector_0*)instruction_2)->field_0.field_0;
startFrame.GetLocalsRef<LocalVariables>().Instruction_5 = field_;
Fake_proxy_ptr_impl_Constructor.Invoke(parameter_2: startFrame.GetLocalsRef<LocalVariables>().Instruction_5, @this: ptr, parameter_1: startFrame.GetLocalsRef<LocalVariables>().Instruction_3);
if (startFrame.GetLocalsRef<LocalVariables>().Instruction_0 != 0L)
void* myval = &((std_vector_jsyy6a*)@this)->Mypair.Myval2;
Fake_proxy_ptr_impl_Constructor.Invoke(&localsPointer->field_1, &localsPointer->field_0, myval);
if (Count != 0L)
{
Buy_nonzero.Invoke(instruction_2, startFrame.GetLocalsRef<LocalVariables>().Instruction_0);
Buy_nonzero.Invoke(@this, Count);
if (ExceptionInfo.Current != null)
{
return;
}
ptr2->field_0 = instruction_2;
void* field_2 = Uninitialized_value_construct_n_zg4iwva.Invoke(Al: startFrame.GetLocalsRef<LocalVariables>().Instruction_2, Count: startFrame.GetLocalsRef<LocalVariables>().Instruction_0, First: ((std_Vector_val_4*)startFrame.GetLocalsRef<LocalVariables>().Instruction_5)->field_0);
localsPointer->field_2.Target = @this;
void* mylast = Uninitialized_value_construct_n_qqxnj2.Invoke(((std_Vector_val_fju23j*)myval)->Myfirst, Count, ptr);
if (ExceptionInfo.Current != null)
{
ExceptionInfo current = ExceptionInfo.Current;
ExceptionInfo? current = ExceptionInfo.Current;
ExceptionInfo.Current = null;
Tidy_guard_class_std_vector_unsigned_int_class_std_allocator_unsigned_int_Destructor.Invoke(ptr2);
Tidy_guard_class_std_vector_unsigned_int_class_std_allocator_unsigned_int_Destructor.Invoke(&localsPointer->field_2);
ExceptionInfo.Current = current;
return;
}
((std_Vector_val_4*)startFrame.GetLocalsRef<LocalVariables>().Instruction_5)->field_1 = field_2;
ptr2->field_0 = null;
Tidy_guard_class_std_vector_unsigned_int_class_std_allocator_unsigned_int_Destructor.Invoke(ptr2);
((std_Vector_val_fju23j*)myval)->Mylast = mylast;
localsPointer->field_2.Target = null;
Tidy_guard_class_std_vector_unsigned_int_class_std_allocator_unsigned_int_Destructor.Invoke(&localsPointer->field_2);
}
Release.Invoke(ptr);
Release.Invoke(&localsPointer->field_1);
StackFrameList.Current.Clear(startFrame);
}
}
@@ -1,27 +0,0 @@
using AssetRipper.Conversions.FastPng.Helpers;
namespace AssetRipper.Conversions.FastPng.GlobalFunctions;
[MangledName("??$_Copy_memmove@PEAEPEAE@std@@YAPEAEPEAE00@Z")]
[DemangledName("unsigned char * __cdecl std::_Copy_memmove<unsigned char *, unsigned char *>(unsigned char *, unsigned char *, unsigned char *)")]
[CleanName("Copy_memmove")]
internal static partial class Copy_memmove_2kkdavd
{
public unsafe static void* Invoke(void* First, void* Last, void* Dest)
{
void* ptr = null;
void** val = &ptr;
void* ptr2 = null;
void** val2 = &ptr2;
ptr = Last;
ptr2 = First;
void* ptr3 = To_address_enkoctc.Invoke(val2);
void* ptr4 = To_address_enkoctc.Invoke(val);
unchecked
{
long object_count = (long)ptr4 - (long)ptr3;
void* ptr5 = ptr3;
return Copy_memmove_tail_x7ipzed.Invoke(ptr5, Dest, (long)ptr4 - (long)ptr5, object_count);
}
}
}
@@ -0,0 +1,24 @@
using AssetRipper.Conversions.FastPng.Helpers;
namespace AssetRipper.Conversions.FastPng.GlobalFunctions;
[MangledName("??$_Copy_memmove@PEA_KPEA_K@std@@YAPEA_KPEA_K00@Z")]
[DemangledName("unsigned __int64 * __cdecl std::_Copy_memmove<unsigned __int64 *, unsigned __int64 *>(unsigned __int64 *, unsigned __int64 *, unsigned __int64 *)")]
[CleanName("Copy_memmove")]
internal static partial class Copy_memmove_cci3ap
{
[return: NativeType("unsigned __int64 *")]
public unsafe static void* Invoke([MangledName("_First")][NativeType("unsigned __int64 *")] void* First, [MangledName("_Last")][NativeType("unsigned __int64 *")] void* Last, [MangledName("_Dest")][NativeType("unsigned __int64 *")] void* Dest)
{
void* ptr = Last;
void* ptr2 = First;
void* ptr3 = To_address_uy47kg.Invoke(&ptr2);
void* ptr4 = To_address_uy47kg.Invoke(&ptr);
unchecked
{
long object_count = ((long)ptr4 - (long)ptr3) / 8L;
void* ptr5 = ptr3;
return Copy_memmove_tail_gix4qw.Invoke(ptr5, Dest, (long)ptr4 - (long)ptr5, object_count);
}
}
}
@@ -6,14 +6,13 @@ namespace AssetRipper.Conversions.FastPng.GlobalFunctions;
[MangledName("??$_Copy_memmove_tail@PEA_K@std@@YAPEA_KQEBDQEA_K_K2@Z")]
[DemangledName("unsigned __int64 * __cdecl std::_Copy_memmove_tail<unsigned __int64 *>(char const *const, unsigned __int64 *const, unsigned __int64, unsigned __int64)")]
[CleanName("Copy_memmove_tail")]
internal static partial class Copy_memmove_tail_oluaukc
internal static partial class Copy_memmove_tail_gix4qw
{
public unsafe static void* Invoke(void* First_ch, void* Dest, long Byte_count, long Object_count)
[return: NativeType("unsigned __int64 *")]
public unsafe static void* Invoke([MangledName("_First_ch")][NativeType("char const *const")] void* First_ch, [MangledName("_Dest")][NativeType("unsigned __int64 *const")] void* Dest, [MangledName("_Byte_count")][NativeType("unsigned __int64")] long Byte_count, [MangledName("_Object_count")][NativeType("unsigned __int64")] long Object_count)
{
void* ptr = null;
void** val = &ptr;
ptr = Dest;
void* ptr2 = To_address_l9253rd.Invoke(val);
void* ptr = Dest;
void* ptr2 = To_address_uy47kg.Invoke(&ptr);
llvm_memmove_p0_p0_i64.Invoke(ptr2, First_ch, Byte_count, isVolatile: false);
return unchecked((byte*)ptr2) + Byte_count;
}
@@ -6,14 +6,13 @@ namespace AssetRipper.Conversions.FastPng.GlobalFunctions;
[MangledName("??$_Copy_memmove_tail@PEAE@std@@YAPEAEQEBDQEAE_K2@Z")]
[DemangledName("unsigned char * __cdecl std::_Copy_memmove_tail<unsigned char *>(char const *const, unsigned char *const, unsigned __int64, unsigned __int64)")]
[CleanName("Copy_memmove_tail")]
internal static partial class Copy_memmove_tail_x7ipzed
internal static partial class Copy_memmove_tail_v5pv3y
{
public unsafe static void* Invoke(void* First_ch, void* Dest, long Byte_count, long Object_count)
[return: NativeType("unsigned char *")]
public unsafe static void* Invoke([MangledName("_First_ch")][NativeType("char const *const")] void* First_ch, [MangledName("_Dest")][NativeType("unsigned char *const")] void* Dest, [MangledName("_Byte_count")][NativeType("unsigned __int64")] long Byte_count, [MangledName("_Object_count")][NativeType("unsigned __int64")] long Object_count)
{
void* ptr = null;
void** val = &ptr;
ptr = Dest;
void* ptr2 = To_address_enkoctc.Invoke(val);
void* ptr = Dest;
void* ptr2 = To_address_e887gk.Invoke(&ptr);
llvm_memmove_p0_p0_i64.Invoke(ptr2, First_ch, Byte_count, isVolatile: false);
return unchecked((byte*)ptr2) + Byte_count;
}
@@ -1,27 +0,0 @@
using AssetRipper.Conversions.FastPng.Helpers;
namespace AssetRipper.Conversions.FastPng.GlobalFunctions;
[MangledName("??$_Copy_memmove@PEA_KPEA_K@std@@YAPEA_KPEA_K00@Z")]
[DemangledName("unsigned __int64 * __cdecl std::_Copy_memmove<unsigned __int64 *, unsigned __int64 *>(unsigned __int64 *, unsigned __int64 *, unsigned __int64 *)")]
[CleanName("Copy_memmove")]
internal static partial class Copy_memmove_uofrjzc
{
public unsafe static void* Invoke(void* First, void* Last, void* Dest)
{
void* ptr = null;
void** val = &ptr;
void* ptr2 = null;
void** val2 = &ptr2;
ptr = Last;
ptr2 = First;
void* ptr3 = To_address_l9253rd.Invoke(val2);
void* ptr4 = To_address_l9253rd.Invoke(val);
unchecked
{
long object_count = ((long)ptr4 - (long)ptr3) / 8L;
void* ptr5 = ptr3;
return Copy_memmove_tail_oluaukc.Invoke(ptr5, Dest, (long)ptr4 - (long)ptr5, object_count);
}
}
}
@@ -0,0 +1,24 @@
using AssetRipper.Conversions.FastPng.Helpers;
namespace AssetRipper.Conversions.FastPng.GlobalFunctions;
[MangledName("??$_Copy_memmove@PEAEPEAE@std@@YAPEAEPEAE00@Z")]
[DemangledName("unsigned char * __cdecl std::_Copy_memmove<unsigned char *, unsigned char *>(unsigned char *, unsigned char *, unsigned char *)")]
[CleanName("Copy_memmove")]
internal static partial class Copy_memmove_y9se66
{
[return: NativeType("unsigned char *")]
public unsafe static void* Invoke([MangledName("_First")][NativeType("unsigned char *")] void* First, [MangledName("_Last")][NativeType("unsigned char *")] void* Last, [MangledName("_Dest")][NativeType("unsigned char *")] void* Dest)
{
void* ptr = Last;
void* ptr2 = First;
void* ptr3 = To_address_e887gk.Invoke(&ptr2);
void* ptr4 = To_address_e887gk.Invoke(&ptr);
unchecked
{
long object_count = (long)ptr4 - (long)ptr3;
void* ptr5 = ptr3;
return Copy_memmove_tail_v5pv3y.Invoke(ptr5, Dest, (long)ptr4 - (long)ptr5, object_count);
}
}
}
@@ -7,20 +7,18 @@ namespace AssetRipper.Conversions.FastPng.GlobalFunctions;
[DemangledName("void __cdecl std::_Deallocate<16>(void *, unsigned __int64)")]
internal static partial class Deallocate
{
public unsafe static void Invoke(void* Ptr, long Bytes)
[return: NativeType("void")]
public unsafe static void Invoke([MangledName("_Ptr")][NativeType("void *")] void* Ptr, [MangledName("_Bytes")][NativeType("unsigned __int64")] long Bytes)
{
long num = 0L;
long* bytes = &num;
void* ptr = null;
void** ptr2 = &ptr;
num = Bytes;
ptr = Ptr;
if (unchecked((ulong)num) >= 4096uL)
{
Adjust_manually_vector_aligned.Invoke(ptr2, bytes);
Adjust_manually_vector_aligned.Invoke(&ptr, &num);
if (ExceptionInfo.Current != null)
{
ExceptionInfo current = ExceptionInfo.Current;
ExceptionInfo.Current = null;
std_terminate.Invoke();
throw null;
@@ -5,9 +5,10 @@ namespace AssetRipper.Conversions.FastPng.GlobalFunctions;
[MangledName("??$_Destroy_range@V?$allocator@E@std@@@std@@YAXPEAEQEAEAEAV?$allocator@E@0@@Z")]
[DemangledName("void __cdecl std::_Destroy_range<class std::allocator<unsigned char>>(unsigned char *, unsigned char *const, class std::allocator<unsigned char> &)")]
[CleanName("Destroy_range")]
internal static partial class Destroy_range_jjcob5a
internal static partial class Destroy_range_6evibt
{
public unsafe static void Invoke(void* First, void* Last, void* Al)
[return: NativeType("void")]
public unsafe static void Invoke([MangledName("_First")][NativeType("unsigned char *")] void* First, [MangledName("_Last")][NativeType("unsigned char *const")] void* Last, [MangledName("_Al")][NativeType("class std::allocator<unsigned char> &")] void* Al)
{
}
}
@@ -5,9 +5,10 @@ namespace AssetRipper.Conversions.FastPng.GlobalFunctions;
[MangledName("??$_Destroy_range@V?$allocator@_K@std@@@std@@YAXPEA_KQEA_KAEAV?$allocator@_K@0@@Z")]
[DemangledName("void __cdecl std::_Destroy_range<class std::allocator<unsigned __int64>>(unsigned __int64 *, unsigned __int64 *const, class std::allocator<unsigned __int64> &)")]
[CleanName("Destroy_range")]
internal static partial class Destroy_range_qbzp7xb
internal static partial class Destroy_range_eprs33
{
public unsafe static void Invoke(void* First, void* Last, void* Al)
[return: NativeType("void")]
public unsafe static void Invoke([MangledName("_First")][NativeType("unsigned __int64 *")] void* First, [MangledName("_Last")][NativeType("unsigned __int64 *const")] void* Last, [MangledName("_Al")][NativeType("class std::allocator<unsigned __int64> &")] void* Al)
{
}
}
@@ -5,9 +5,10 @@ namespace AssetRipper.Conversions.FastPng.GlobalFunctions;
[MangledName("??$_Destroy_range@V?$allocator@I@std@@@std@@YAXPEAIQEAIAEAV?$allocator@I@0@@Z")]
[DemangledName("void __cdecl std::_Destroy_range<class std::allocator<unsigned int>>(unsigned int *, unsigned int *const, class std::allocator<unsigned int> &)")]
[CleanName("Destroy_range")]
internal static partial class Destroy_range_9rluabc
internal static partial class Destroy_range_vpmzer
{
public unsafe static void Invoke(void* First, void* Last, void* Al)
[return: NativeType("void")]
public unsafe static void Invoke([MangledName("_First")][NativeType("unsigned int *")] void* First, [MangledName("_Last")][NativeType("unsigned int *const")] void* Last, [MangledName("_Al")][NativeType("class std::allocator<unsigned int> &")] void* Al)
{
}
}
@@ -6,7 +6,7 @@ namespace AssetRipper.Conversions.FastPng.GlobalFunctions;
[DemangledName("public: __cdecl std::_Fake_proxy_ptr_impl::_Fake_proxy_ptr_impl(struct std::_Fake_allocator const &, struct std::_Container_base0 const &)")]
internal static partial class Fake_proxy_ptr_impl_Constructor
{
public unsafe static void* Invoke(void* @this, void* parameter_1, void* parameter_2)
public unsafe static void* Invoke(void* @this, [NativeType("struct std::_Fake_allocator const &")] void* parameter_1, [NativeType("struct std::_Container_base0 const &")] void* parameter_2)
{
return @this;
}
@@ -5,8 +5,9 @@ namespace AssetRipper.Conversions.FastPng.GlobalFunctions;
[MangledName("?_Get_first@?$_Compressed_pair@V?$allocator@E@std@@V?$_Vector_val@U?$_Simple_types@E@std@@@2@$00@std@@QEAAAEAV?$allocator@E@2@XZ")]
[DemangledName("public: class std::allocator<unsigned char> & __cdecl std::_Compressed_pair<class std::allocator<unsigned char>, class std::_Vector_val<struct std::_Simple_types<unsigned char>>, 1>::_Get_first(void)")]
[CleanName("Get_first")]
internal static partial class Get_first_nkl7psd
internal static partial class Get_first_2rs8wq
{
[return: NativeType("class std::allocator<unsigned char> &")]
public unsafe static void* Invoke(void* @this)
{
return @this;
@@ -5,8 +5,9 @@ namespace AssetRipper.Conversions.FastPng.GlobalFunctions;
[MangledName("?_Get_first@?$_Compressed_pair@V?$allocator@_K@std@@V?$_Vector_val@U?$_Simple_types@_K@std@@@2@$00@std@@QEBAAEBV?$allocator@_K@2@XZ")]
[DemangledName("public: class std::allocator<unsigned __int64> const & __cdecl std::_Compressed_pair<class std::allocator<unsigned __int64>, class std::_Vector_val<struct std::_Simple_types<unsigned __int64>>, 1>::_Get_first(void) const")]
[CleanName("Get_first")]
internal static partial class Get_first_gcgh4xa
internal static partial class Get_first_6qcwh9
{
[return: NativeType("class std::allocator<unsigned __int64> const &")]
public unsafe static void* Invoke(void* @this)
{
return @this;
@@ -5,8 +5,9 @@ namespace AssetRipper.Conversions.FastPng.GlobalFunctions;
[MangledName("?_Get_first@?$_Compressed_pair@V?$allocator@I@std@@V?$_Vector_val@U?$_Simple_types@I@std@@@2@$00@std@@QEAAAEAV?$allocator@I@2@XZ")]
[DemangledName("public: class std::allocator<unsigned int> & __cdecl std::_Compressed_pair<class std::allocator<unsigned int>, class std::_Vector_val<struct std::_Simple_types<unsigned int>>, 1>::_Get_first(void)")]
[CleanName("Get_first")]
internal static partial class Get_first_evhdorb
internal static partial class Get_first_cund8f
{
[return: NativeType("class std::allocator<unsigned int> &")]
public unsafe static void* Invoke(void* @this)
{
return @this;
@@ -5,8 +5,9 @@ namespace AssetRipper.Conversions.FastPng.GlobalFunctions;
[MangledName("?_Get_first@?$_Compressed_pair@V?$allocator@I@std@@V?$_Vector_val@U?$_Simple_types@I@std@@@2@$00@std@@QEBAAEBV?$allocator@I@2@XZ")]
[DemangledName("public: class std::allocator<unsigned int> const & __cdecl std::_Compressed_pair<class std::allocator<unsigned int>, class std::_Vector_val<struct std::_Simple_types<unsigned int>>, 1>::_Get_first(void) const")]
[CleanName("Get_first")]
internal static partial class Get_first_gs7mvkc
internal static partial class Get_first_djzrvk
{
[return: NativeType("class std::allocator<unsigned int> const &")]
public unsafe static void* Invoke(void* @this)
{
return @this;
@@ -5,8 +5,9 @@ namespace AssetRipper.Conversions.FastPng.GlobalFunctions;
[MangledName("?_Get_first@?$_Compressed_pair@V?$allocator@_K@std@@V?$_Vector_val@U?$_Simple_types@_K@std@@@2@$00@std@@QEAAAEAV?$allocator@_K@2@XZ")]
[DemangledName("public: class std::allocator<unsigned __int64> & __cdecl std::_Compressed_pair<class std::allocator<unsigned __int64>, class std::_Vector_val<struct std::_Simple_types<unsigned __int64>>, 1>::_Get_first(void)")]
[CleanName("Get_first")]
internal static partial class Get_first_whlbtqb
internal static partial class Get_first_he3p6z
{
[return: NativeType("class std::allocator<unsigned __int64> &")]
public unsafe static void* Invoke(void* @this)
{
return @this;
@@ -5,8 +5,9 @@ namespace AssetRipper.Conversions.FastPng.GlobalFunctions;
[MangledName("?_Get_first@?$_Compressed_pair@V?$allocator@E@std@@V?$_Vector_val@U?$_Simple_types@E@std@@@2@$00@std@@QEBAAEBV?$allocator@E@2@XZ")]
[DemangledName("public: class std::allocator<unsigned char> const & __cdecl std::_Compressed_pair<class std::allocator<unsigned char>, class std::_Vector_val<struct std::_Simple_types<unsigned char>>, 1>::_Get_first(void) const")]
[CleanName("Get_first")]
internal static partial class Get_first_pnsruja
internal static partial class Get_first_nacpdc
{
[return: NativeType("class std::allocator<unsigned char> const &")]
public unsafe static void* Invoke(void* @this)
{
return @this;
@@ -0,0 +1,16 @@
using AssetRipper.Conversions.FastPng.Helpers;
using AssetRipper.Conversions.FastPng.Structures;
namespace AssetRipper.Conversions.FastPng.GlobalFunctions;
[MangledName("??$_Get_proxy_allocator@V?$allocator@E@std@@@std@@YA?AU_Fake_allocator@0@AEBV?$allocator@E@0@@Z")]
[DemangledName("struct std::_Fake_allocator __cdecl std::_Get_proxy_allocator<class std::allocator<unsigned char>>(class std::allocator<unsigned char> const &)")]
[CleanName("Get_proxy_allocator")]
internal static partial class Get_proxy_allocator_gq86h4
{
[return: NativeType("struct std::_Fake_allocator")]
public unsafe static sbyte Invoke([NativeType("class std::allocator<unsigned char> const &")] void* parameter_0)
{
return default(std_Fake_allocator).field_0;
}
}
@@ -0,0 +1,16 @@
using AssetRipper.Conversions.FastPng.Helpers;
using AssetRipper.Conversions.FastPng.Structures;
namespace AssetRipper.Conversions.FastPng.GlobalFunctions;
[MangledName("??$_Get_proxy_allocator@V?$allocator@_K@std@@@std@@YA?AU_Fake_allocator@0@AEBV?$allocator@_K@0@@Z")]
[DemangledName("struct std::_Fake_allocator __cdecl std::_Get_proxy_allocator<class std::allocator<unsigned __int64>>(class std::allocator<unsigned __int64> const &)")]
[CleanName("Get_proxy_allocator")]
internal static partial class Get_proxy_allocator_pz3zxs
{
[return: NativeType("struct std::_Fake_allocator")]
public unsafe static sbyte Invoke([NativeType("class std::allocator<unsigned __int64> const &")] void* parameter_0)
{
return default(std_Fake_allocator).field_0;
}
}
@@ -0,0 +1,16 @@
using AssetRipper.Conversions.FastPng.Helpers;
using AssetRipper.Conversions.FastPng.Structures;
namespace AssetRipper.Conversions.FastPng.GlobalFunctions;
[MangledName("??$_Get_proxy_allocator@V?$allocator@I@std@@@std@@YA?AU_Fake_allocator@0@AEBV?$allocator@I@0@@Z")]
[DemangledName("struct std::_Fake_allocator __cdecl std::_Get_proxy_allocator<class std::allocator<unsigned int>>(class std::allocator<unsigned int> const &)")]
[CleanName("Get_proxy_allocator")]
internal static partial class Get_proxy_allocator_r4aa37
{
[return: NativeType("struct std::_Fake_allocator")]
public unsafe static sbyte Invoke([NativeType("class std::allocator<unsigned int> const &")] void* parameter_0)
{
return default(std_Fake_allocator).field_0;
}
}
@@ -0,0 +1,27 @@
using AssetRipper.Conversions.FastPng.Helpers;
namespace AssetRipper.Conversions.FastPng.GlobalFunctions;
[MangledName("??$_Get_size_of_n@$03@std@@YA_K_K@Z")]
[DemangledName("unsigned __int64 __cdecl std::_Get_size_of_n<4>(unsigned __int64)")]
[CleanName("Get_size_of_n")]
internal static partial class Get_size_of_n_4bnjce
{
[return: NativeType("unsigned __int64")]
public static long Invoke([MangledName("_Count")][NativeType("unsigned __int64")] long Count)
{
unchecked
{
if ((ulong)Count > 4611686018427387903uL)
{
Throw_bad_array_new_length.Invoke();
if (ExceptionInfo.Current != null)
{
return 0L;
}
throw null;
}
return Count * 4L;
}
}
}
@@ -5,11 +5,11 @@ namespace AssetRipper.Conversions.FastPng.GlobalFunctions;
[MangledName("??$_Get_size_of_n@$00@std@@YA_K_K@Z")]
[DemangledName("unsigned __int64 __cdecl std::_Get_size_of_n<1>(unsigned __int64)")]
[CleanName("Get_size_of_n")]
internal static partial class Get_size_of_n_iqtw9sb
internal static partial class Get_size_of_n_d9tw5e
{
public static long Invoke(long Count)
[return: NativeType("unsigned __int64")]
public static long Invoke([MangledName("_Count")][NativeType("unsigned __int64")] long Count)
{
sbyte b = 0;
return unchecked(Count * 1L);
}
}
@@ -0,0 +1,27 @@
using AssetRipper.Conversions.FastPng.Helpers;
namespace AssetRipper.Conversions.FastPng.GlobalFunctions;
[MangledName("??$_Get_size_of_n@$07@std@@YA_K_K@Z")]
[DemangledName("unsigned __int64 __cdecl std::_Get_size_of_n<8>(unsigned __int64)")]
[CleanName("Get_size_of_n")]
internal static partial class Get_size_of_n_p7wxpq
{
[return: NativeType("unsigned __int64")]
public static long Invoke([MangledName("_Count")][NativeType("unsigned __int64")] long Count)
{
unchecked
{
if ((ulong)Count > 2305843009213693951uL)
{
Throw_bad_array_new_length.Invoke();
if (ExceptionInfo.Current != null)
{
return 0L;
}
throw null;
}
return Count * 8L;
}
}
}
@@ -1,41 +0,0 @@
using AssetRipper.Conversions.FastPng.Helpers;
namespace AssetRipper.Conversions.FastPng.GlobalFunctions;
[MangledName("??$_Get_size_of_n@$03@std@@YA_K_K@Z")]
[DemangledName("unsigned __int64 __cdecl std::_Get_size_of_n<4>(unsigned __int64)")]
[CleanName("Get_size_of_n")]
internal static partial class Get_size_of_n_rdjmi2b
{
private partial struct LocalVariables
{
public long Instruction_0;
public sbyte Instruction_1;
public long Instruction_2;
}
public static long Invoke(long Count)
{
StackFrame startFrame = StackFrameList.Current.New<LocalVariables>();
startFrame.GetLocalsRef<LocalVariables>().Instruction_0 = Count;
startFrame.GetLocalsRef<LocalVariables>().Instruction_1 = 1;
startFrame.GetLocalsRef<LocalVariables>().Instruction_2 = 4611686018427387903L;
unchecked
{
if ((ulong)startFrame.GetLocalsRef<LocalVariables>().Instruction_0 > 4611686018427387903uL)
{
Throw_bad_array_new_length.Invoke();
if (ExceptionInfo.Current != null)
{
return 0L;
}
throw null;
}
long result = startFrame.GetLocalsRef<LocalVariables>().Instruction_0 * 4L;
StackFrameList.Current.Clear(startFrame);
return result;
}
}
}
@@ -1,41 +0,0 @@
using AssetRipper.Conversions.FastPng.Helpers;
namespace AssetRipper.Conversions.FastPng.GlobalFunctions;
[MangledName("??$_Get_size_of_n@$07@std@@YA_K_K@Z")]
[DemangledName("unsigned __int64 __cdecl std::_Get_size_of_n<8>(unsigned __int64)")]
[CleanName("Get_size_of_n")]
internal static partial class Get_size_of_n_siqup9d
{
private partial struct LocalVariables
{
public long Instruction_0;
public sbyte Instruction_1;
public long Instruction_2;
}
public static long Invoke(long Count)
{
StackFrame startFrame = StackFrameList.Current.New<LocalVariables>();
startFrame.GetLocalsRef<LocalVariables>().Instruction_0 = Count;
startFrame.GetLocalsRef<LocalVariables>().Instruction_1 = 1;
startFrame.GetLocalsRef<LocalVariables>().Instruction_2 = 2305843009213693951L;
unchecked
{
if ((ulong)startFrame.GetLocalsRef<LocalVariables>().Instruction_0 > 2305843009213693951uL)
{
Throw_bad_array_new_length.Invoke();
if (ExceptionInfo.Current != null)
{
return 0L;
}
throw null;
}
long result = startFrame.GetLocalsRef<LocalVariables>().Instruction_0 * 8L;
StackFrameList.Current.Clear(startFrame);
return result;
}
}
}
@@ -5,9 +5,10 @@ namespace AssetRipper.Conversions.FastPng.GlobalFunctions;
[MangledName("??$_Get_unwrapped@AEBQEA_K@std@@YA?A_TAEBQEA_K@Z")]
[DemangledName("decltype(auto) __cdecl std::_Get_unwrapped<unsigned __int64 *const &>(unsigned __int64 *const &)")]
[CleanName("Get_unwrapped")]
internal static partial class Get_unwrapped_3jsimya
internal static partial class Get_unwrapped_b5ivdj
{
public unsafe static void* Invoke(void* It)
[return: NativeType("decltype(auto)")]
public unsafe static void* Invoke([MangledName("_It")][NativeType("unsigned __int64 *const &")] void* It)
{
return *unchecked((void**)It);
}
@@ -5,9 +5,10 @@ namespace AssetRipper.Conversions.FastPng.GlobalFunctions;
[MangledName("??$_Get_unwrapped@AEBQEAE@std@@YA?A_TAEBQEAE@Z")]
[DemangledName("decltype(auto) __cdecl std::_Get_unwrapped<unsigned char *const &>(unsigned char *const &)")]
[CleanName("Get_unwrapped")]
internal static partial class Get_unwrapped_z99fpma
internal static partial class Get_unwrapped_viw76v
{
public unsafe static void* Invoke(void* It)
[return: NativeType("decltype(auto)")]
public unsafe static void* Invoke([MangledName("_It")][NativeType("unsigned char *const &")] void* It)
{
return *unchecked((void**)It);
}
@@ -6,10 +6,11 @@ namespace AssetRipper.Conversions.FastPng.GlobalFunctions;
[MangledName("?_Getal@?$vector@_KV?$allocator@_K@std@@@std@@AEAAAEAV?$allocator@_K@2@XZ")]
[DemangledName("private: class std::allocator<unsigned __int64> & __cdecl std::vector<unsigned __int64, class std::allocator<unsigned __int64>>::_Getal(void)")]
[CleanName("Getal")]
internal static partial class Getal_kuj7nva
internal static partial class Getal_ie7hg9
{
[return: NativeType("class std::allocator<unsigned __int64> &")]
public unsafe static void* Invoke(void* @this)
{
return Get_first_whlbtqb.Invoke(&unchecked((std_vector_5*)@this)->field_0);
return Get_first_he3p6z.Invoke(&unchecked((std_vector_ucmdxb*)@this)->Mypair);
}
}
@@ -6,10 +6,11 @@ namespace AssetRipper.Conversions.FastPng.GlobalFunctions;
[MangledName("?_Getal@?$vector@IV?$allocator@I@std@@@std@@AEAAAEAV?$allocator@I@2@XZ")]
[DemangledName("private: class std::allocator<unsigned int> & __cdecl std::vector<unsigned int, class std::allocator<unsigned int>>::_Getal(void)")]
[CleanName("Getal")]
internal static partial class Getal_t2pmqoc
internal static partial class Getal_jb66tx
{
[return: NativeType("class std::allocator<unsigned int> &")]
public unsafe static void* Invoke(void* @this)
{
return Get_first_evhdorb.Invoke(&unchecked((std_vector_0*)@this)->field_0);
return Get_first_cund8f.Invoke(&unchecked((std_vector_jsyy6a*)@this)->Mypair);
}
}
@@ -6,10 +6,11 @@ namespace AssetRipper.Conversions.FastPng.GlobalFunctions;
[MangledName("?_Getal@?$vector@IV?$allocator@I@std@@@std@@AEBAAEBV?$allocator@I@2@XZ")]
[DemangledName("private: class std::allocator<unsigned int> const & __cdecl std::vector<unsigned int, class std::allocator<unsigned int>>::_Getal(void) const")]
[CleanName("Getal")]
internal static partial class Getal_r5wdlvb
internal static partial class Getal_kwpsjz
{
[return: NativeType("class std::allocator<unsigned int> const &")]
public unsafe static void* Invoke(void* @this)
{
return Get_first_gs7mvkc.Invoke(&unchecked((std_vector_0*)@this)->field_0);
return Get_first_djzrvk.Invoke(&unchecked((std_vector_jsyy6a*)@this)->Mypair);
}
}
@@ -6,10 +6,11 @@ namespace AssetRipper.Conversions.FastPng.GlobalFunctions;
[MangledName("?_Getal@?$vector@_KV?$allocator@_K@std@@@std@@AEBAAEBV?$allocator@_K@2@XZ")]
[DemangledName("private: class std::allocator<unsigned __int64> const & __cdecl std::vector<unsigned __int64, class std::allocator<unsigned __int64>>::_Getal(void) const")]
[CleanName("Getal")]
internal static partial class Getal_2reycsb
internal static partial class Getal_vgvjy8
{
[return: NativeType("class std::allocator<unsigned __int64> const &")]
public unsafe static void* Invoke(void* @this)
{
return Get_first_gcgh4xa.Invoke(&unchecked((std_vector_5*)@this)->field_0);
return Get_first_6qcwh9.Invoke(&unchecked((std_vector_ucmdxb*)@this)->Mypair);
}
}
@@ -6,10 +6,11 @@ namespace AssetRipper.Conversions.FastPng.GlobalFunctions;
[MangledName("?_Getal@?$vector@EV?$allocator@E@std@@@std@@AEAAAEAV?$allocator@E@2@XZ")]
[DemangledName("private: class std::allocator<unsigned char> & __cdecl std::vector<unsigned char, class std::allocator<unsigned char>>::_Getal(void)")]
[CleanName("Getal")]
internal static partial class Getal_jms5hzb
internal static partial class Getal_vpqbcr
{
[return: NativeType("class std::allocator<unsigned char> &")]
public unsafe static void* Invoke(void* @this)
{
return Get_first_nkl7psd.Invoke(&unchecked((std_vector*)@this)->field_0);
return Get_first_2rs8wq.Invoke(&unchecked((std_vector_4tqn2f*)@this)->Mypair);
}
}
@@ -6,10 +6,11 @@ namespace AssetRipper.Conversions.FastPng.GlobalFunctions;
[MangledName("?_Getal@?$vector@EV?$allocator@E@std@@@std@@AEBAAEBV?$allocator@E@2@XZ")]
[DemangledName("private: class std::allocator<unsigned char> const & __cdecl std::vector<unsigned char, class std::allocator<unsigned char>>::_Getal(void) const")]
[CleanName("Getal")]
internal static partial class Getal_llls4cc
internal static partial class Getal_xcf3vf
{
[return: NativeType("class std::allocator<unsigned char> const &")]
public unsafe static void* Invoke(void* @this)
{
return Get_first_pnsruja.Invoke(&unchecked((std_vector*)@this)->field_0);
return Get_first_nacpdc.Invoke(&unchecked((std_vector_4tqn2f*)@this)->Mypair);
}
}
@@ -6,9 +6,9 @@ namespace AssetRipper.Conversions.FastPng.GlobalFunctions;
[DemangledName("__int64 __cdecl std::_Max_limit<__int64>(void)")]
internal static partial class Max_limit
{
[return: NativeType("__int64")]
public static long Invoke()
{
long num = -1L;
return long.MaxValue;
}
}
@@ -6,6 +6,7 @@ namespace AssetRipper.Conversions.FastPng.GlobalFunctions;
[DemangledName("public: void __cdecl std::_Container_base0::_Orphan_all(void)")]
internal static partial class Orphan_all
{
[return: NativeType("void")]
public unsafe static void Invoke(void* @this)
{
}
@@ -5,9 +5,10 @@ namespace AssetRipper.Conversions.FastPng.GlobalFunctions;
[MangledName("?_Orphan_range@?$vector@_KV?$allocator@_K@std@@@std@@AEBAXPEA_K0@Z")]
[DemangledName("private: void __cdecl std::vector<unsigned __int64, class std::allocator<unsigned __int64>>::_Orphan_range(unsigned __int64 *, unsigned __int64 *) const")]
[CleanName("Orphan_range")]
internal static partial class Orphan_range_qciws4b
internal static partial class Orphan_range_8vzm8x
{
public unsafe static void Invoke(void* @this, void* parameter_1, void* parameter_2)
[return: NativeType("void")]
public unsafe static void Invoke(void* @this, [NativeType("unsigned __int64 *")] void* parameter_1, [NativeType("unsigned __int64 *")] void* parameter_2)
{
}
}
@@ -5,9 +5,10 @@ namespace AssetRipper.Conversions.FastPng.GlobalFunctions;
[MangledName("?_Orphan_range@?$vector@EV?$allocator@E@std@@@std@@AEBAXPEAE0@Z")]
[DemangledName("private: void __cdecl std::vector<unsigned char, class std::allocator<unsigned char>>::_Orphan_range(unsigned char *, unsigned char *) const")]
[CleanName("Orphan_range")]
internal static partial class Orphan_range_334quvb
internal static partial class Orphan_range_xjvz63
{
public unsafe static void Invoke(void* @this, void* parameter_1, void* parameter_2)
[return: NativeType("void")]
public unsafe static void Invoke(void* @this, [NativeType("unsigned char *")] void* parameter_1, [NativeType("unsigned char *")] void* parameter_2)
{
}
}
@@ -6,7 +6,8 @@ namespace AssetRipper.Conversions.FastPng.GlobalFunctions;
[DemangledName("unsigned int __cdecl fpng::READ_RGB_PIXEL(void const *)")]
internal static partial class READ_RGB_PIXEL
{
public unsafe static int Invoke(void* p)
[return: NativeType("unsigned int")]
public unsafe static int Invoke([NativeType("void const *")] void* p)
{
return *unchecked((int*)p) & 0xFFFFFF;
}
@@ -6,7 +6,7 @@ namespace AssetRipper.Conversions.FastPng.GlobalFunctions;
[MangledName("??1_Reallocation_guard@?$vector@_KV?$allocator@_K@std@@@std@@QEAA@XZ")]
[DemangledName("public: __cdecl std::vector<unsigned __int64, class std::allocator<unsigned __int64>>::_Reallocation_guard::~_Reallocation_guard(void)")]
[CleanName("Reallocation_guard_Destructor")]
internal static partial class Reallocation_guard_Destructor_jfaqped
internal static partial class Reallocation_guard_Destructor_fq2gtv
{
public unsafe static void Invoke(void* @this)
{
@@ -14,8 +14,8 @@ internal static partial class Reallocation_guard_Destructor_jfaqped
{
if (((std_vector_unsigned_long_long_Reallocation_guard*)@this)->field_1 != null)
{
Destroy_range_qbzp7xb.Invoke(Al: ((std_vector_unsigned_long_long_Reallocation_guard*)@this)->field_0, Last: ((std_vector_unsigned_long_long_Reallocation_guard*)@this)->field_4, First: ((std_vector_unsigned_long_long_Reallocation_guard*)@this)->field_3);
deallocate_yb2gvqa.Invoke(((std_vector_unsigned_long_long_Reallocation_guard*)@this)->field_0, Count: ((std_vector_unsigned_long_long_Reallocation_guard*)@this)->field_2, Ptr: ((std_vector_unsigned_long_long_Reallocation_guard*)@this)->field_1);
Destroy_range_eprs33.Invoke(Al: ((std_vector_unsigned_long_long_Reallocation_guard*)@this)->field_0, Last: ((std_vector_unsigned_long_long_Reallocation_guard*)@this)->field_4, First: ((std_vector_unsigned_long_long_Reallocation_guard*)@this)->field_3);
deallocate_hcscub.Invoke(((std_vector_unsigned_long_long_Reallocation_guard*)@this)->field_0, Count: ((std_vector_unsigned_long_long_Reallocation_guard*)@this)->field_2, Ptr: ((std_vector_unsigned_long_long_Reallocation_guard*)@this)->field_1);
}
}
}
@@ -6,7 +6,7 @@ namespace AssetRipper.Conversions.FastPng.GlobalFunctions;
[MangledName("??1_Reallocation_guard@?$vector@EV?$allocator@E@std@@@std@@QEAA@XZ")]
[DemangledName("public: __cdecl std::vector<unsigned char, class std::allocator<unsigned char>>::_Reallocation_guard::~_Reallocation_guard(void)")]
[CleanName("Reallocation_guard_Destructor")]
internal static partial class Reallocation_guard_Destructor_9xb7gra
internal static partial class Reallocation_guard_Destructor_r9uyr4
{
public unsafe static void Invoke(void* @this)
{
@@ -14,8 +14,8 @@ internal static partial class Reallocation_guard_Destructor_9xb7gra
{
if (((std_vector_unsigned_char_Reallocation_guard*)@this)->field_1 != null)
{
Destroy_range_jjcob5a.Invoke(Al: ((std_vector_unsigned_char_Reallocation_guard*)@this)->field_0, Last: ((std_vector_unsigned_char_Reallocation_guard*)@this)->field_4, First: ((std_vector_unsigned_char_Reallocation_guard*)@this)->field_3);
deallocate_mc9rbjc.Invoke(((std_vector_unsigned_char_Reallocation_guard*)@this)->field_0, Count: ((std_vector_unsigned_char_Reallocation_guard*)@this)->field_2, Ptr: ((std_vector_unsigned_char_Reallocation_guard*)@this)->field_1);
Destroy_range_6evibt.Invoke(Al: ((std_vector_unsigned_char_Reallocation_guard*)@this)->field_0, Last: ((std_vector_unsigned_char_Reallocation_guard*)@this)->field_4, First: ((std_vector_unsigned_char_Reallocation_guard*)@this)->field_3);
deallocate_572ymf.Invoke(((std_vector_unsigned_char_Reallocation_guard*)@this)->field_0, Count: ((std_vector_unsigned_char_Reallocation_guard*)@this)->field_2, Ptr: ((std_vector_unsigned_char_Reallocation_guard*)@this)->field_1);
}
}
}
@@ -6,6 +6,7 @@ namespace AssetRipper.Conversions.FastPng.GlobalFunctions;
[DemangledName("public: void __cdecl std::_Fake_proxy_ptr_impl::_Release(void)")]
internal static partial class Release
{
[return: NativeType("void")]
public unsafe static void Invoke(void* @this)
{
}
@@ -1,89 +0,0 @@
using AssetRipper.Conversions.FastPng.Helpers;
using AssetRipper.Conversions.FastPng.Structures;
namespace AssetRipper.Conversions.FastPng.GlobalFunctions;
[MangledName("??$_Resize@U_Value_init_tag@std@@@?$vector@_KV?$allocator@_K@std@@@std@@AEAAX_KAEBU_Value_init_tag@1@@Z")]
[DemangledName("private: void __cdecl std::vector<unsigned __int64, class std::allocator<unsigned __int64>>::_Resize<struct std::_Value_init_tag>(unsigned __int64, struct std::_Value_init_tag const &)")]
[CleanName("Resize")]
internal static partial class Resize_2s9rs9d
{
private partial struct LocalVariables
{
public unsafe void* Instruction_0;
public long Instruction_1;
public unsafe void* Instruction_2;
public unsafe void* Instruction_3;
public unsafe void* Instruction_4;
public unsafe void* Instruction_5;
public unsafe void* Instruction_6;
public long Instruction_7;
public unsafe void* Instruction_8;
public long Instruction_9;
public unsafe void* Instruction_10;
}
public unsafe static void Invoke(void* @this, long Newsize, void* Val)
{
StackFrame startFrame = StackFrameList.Current.New<LocalVariables>();
startFrame.GetLocalsRef<LocalVariables>().Instruction_0 = Val;
startFrame.GetLocalsRef<LocalVariables>().Instruction_1 = Newsize;
startFrame.GetLocalsRef<LocalVariables>().Instruction_2 = @this;
void* instruction_ = startFrame.GetLocalsRef<LocalVariables>().Instruction_2;
void* instruction_2 = Getal_kuj7nva.Invoke(instruction_);
startFrame.GetLocalsRef<LocalVariables>().Instruction_3 = instruction_2;
unchecked
{
std_Vector_val_9* field_ = &((std_vector_5*)instruction_)->field_0.field_0;
startFrame.GetLocalsRef<LocalVariables>().Instruction_4 = field_;
void** field_2 = &((std_Vector_val_9*)startFrame.GetLocalsRef<LocalVariables>().Instruction_4)->field_0;
startFrame.GetLocalsRef<LocalVariables>().Instruction_5 = field_2;
void** field_3 = &((std_Vector_val_9*)startFrame.GetLocalsRef<LocalVariables>().Instruction_4)->field_1;
startFrame.GetLocalsRef<LocalVariables>().Instruction_6 = field_3;
long instruction_3 = ((long)(nuint)(*(nint*)startFrame.GetLocalsRef<LocalVariables>().Instruction_6) - (long)(nuint)(*(nint*)startFrame.GetLocalsRef<LocalVariables>().Instruction_5)) / 8L;
startFrame.GetLocalsRef<LocalVariables>().Instruction_7 = instruction_3;
if ((ulong)startFrame.GetLocalsRef<LocalVariables>().Instruction_1 < (ulong)startFrame.GetLocalsRef<LocalVariables>().Instruction_7)
{
void* instruction_4 = *(void**)startFrame.GetLocalsRef<LocalVariables>().Instruction_5;
long instruction_5 = startFrame.GetLocalsRef<LocalVariables>().Instruction_1;
startFrame.GetLocalsRef<LocalVariables>().Instruction_8 = (byte*)instruction_4 + (nint)instruction_5 * 8;
Orphan_range_qciws4b.Invoke(parameter_2: *(void**)startFrame.GetLocalsRef<LocalVariables>().Instruction_6, @this: instruction_, parameter_1: startFrame.GetLocalsRef<LocalVariables>().Instruction_8);
Destroy_range_qbzp7xb.Invoke(Al: startFrame.GetLocalsRef<LocalVariables>().Instruction_3, Last: *(void**)startFrame.GetLocalsRef<LocalVariables>().Instruction_6, First: startFrame.GetLocalsRef<LocalVariables>().Instruction_8);
void* instruction_6 = startFrame.GetLocalsRef<LocalVariables>().Instruction_8;
*(void**)startFrame.GetLocalsRef<LocalVariables>().Instruction_6 = instruction_6;
}
else if ((ulong)startFrame.GetLocalsRef<LocalVariables>().Instruction_1 > (ulong)startFrame.GetLocalsRef<LocalVariables>().Instruction_7)
{
long instruction_7 = ((long)((std_Vector_val_9*)startFrame.GetLocalsRef<LocalVariables>().Instruction_4)->field_2 - (long)(nuint)(*(nint*)startFrame.GetLocalsRef<LocalVariables>().Instruction_5)) / 8L;
startFrame.GetLocalsRef<LocalVariables>().Instruction_9 = instruction_7;
if ((ulong)startFrame.GetLocalsRef<LocalVariables>().Instruction_1 > (ulong)startFrame.GetLocalsRef<LocalVariables>().Instruction_9)
{
Resize_reallocate_ytnsorc.Invoke(Val: startFrame.GetLocalsRef<LocalVariables>().Instruction_0, @this: instruction_, Newsize: startFrame.GetLocalsRef<LocalVariables>().Instruction_1);
if (ExceptionInfo.Current != null)
{
return;
}
}
else
{
void* instruction_8 = *(void**)startFrame.GetLocalsRef<LocalVariables>().Instruction_6;
startFrame.GetLocalsRef<LocalVariables>().Instruction_10 = instruction_8;
void* ptr = Uninitialized_value_construct_n_hqowyoc.Invoke(Al: startFrame.GetLocalsRef<LocalVariables>().Instruction_3, Count: startFrame.GetLocalsRef<LocalVariables>().Instruction_1 - startFrame.GetLocalsRef<LocalVariables>().Instruction_7, First: startFrame.GetLocalsRef<LocalVariables>().Instruction_10);
*(void**)startFrame.GetLocalsRef<LocalVariables>().Instruction_6 = ptr;
Orphan_range_qciws4b.Invoke(parameter_2: startFrame.GetLocalsRef<LocalVariables>().Instruction_10, @this: instruction_, parameter_1: startFrame.GetLocalsRef<LocalVariables>().Instruction_10);
}
}
StackFrameList.Current.Clear(startFrame);
}
}
}
@@ -0,0 +1,51 @@
using System;
using AssetRipper.Conversions.FastPng.Helpers;
using AssetRipper.Conversions.FastPng.Structures;
namespace AssetRipper.Conversions.FastPng.GlobalFunctions;
[MangledName("??$_Resize@U_Value_init_tag@std@@@?$vector@_KV?$allocator@_K@std@@@std@@AEAAX_KAEBU_Value_init_tag@1@@Z")]
[DemangledName("private: void __cdecl std::vector<unsigned __int64, class std::allocator<unsigned __int64>>::_Resize<struct std::_Value_init_tag>(unsigned __int64, struct std::_Value_init_tag const &)")]
[CleanName("Resize")]
internal static partial class Resize_m89abf
{
[return: NativeType("void")]
public unsafe static void Invoke(void* @this, [MangledName("_Newsize")][NativeType("unsigned __int64")] long Newsize, [MangledName("_Val")][NativeType("struct std::_Value_init_tag const &")] void* Val)
{
void* al = Getal_ie7hg9.Invoke(@this);
unchecked
{
void* myval = &((std_vector_ucmdxb*)@this)->Mypair.Myval2;
void* myfirst = &((std_Vector_val_i7igbu*)myval)->Myfirst;
void* mylast = &((std_Vector_val_i7igbu*)myval)->Mylast;
long num = ((long)(nuint)(*(nint*)mylast) - (long)(nuint)(*(nint*)myfirst)) / 8L;
if ((ulong)Newsize < (ulong)num)
{
void* ptr = (void*)((nint)(*(IntPtr*)myfirst) + (nint)Newsize * 8);
Orphan_range_8vzm8x.Invoke(@this, ptr, *(void**)mylast);
Destroy_range_eprs33.Invoke(ptr, *(void**)mylast, al);
*(void**)mylast = ptr;
}
else
{
if ((ulong)Newsize <= (ulong)num)
{
return;
}
if ((ulong)Newsize > (ulong)(((long)((std_Vector_val_i7igbu*)myval)->Myend - (long)(nuint)(*(nint*)myfirst)) / 8L))
{
Resize_reallocate_jjqf5n.Invoke(@this, Newsize, Val);
if (ExceptionInfo.Current == null)
{
}
}
else
{
void* ptr2 = *(void**)mylast;
*(void**)mylast = Uninitialized_value_construct_n_e2x86x.Invoke(ptr2, Newsize - num, al);
Orphan_range_8vzm8x.Invoke(@this, ptr2, ptr2);
}
}
}
}
}
@@ -1,91 +0,0 @@
using AssetRipper.Conversions.FastPng.Helpers;
using AssetRipper.Conversions.FastPng.Structures;
namespace AssetRipper.Conversions.FastPng.GlobalFunctions;
[MangledName("??$_Resize@U_Value_init_tag@std@@@?$vector@EV?$allocator@E@std@@@std@@AEAAX_KAEBU_Value_init_tag@1@@Z")]
[DemangledName("private: void __cdecl std::vector<unsigned char, class std::allocator<unsigned char>>::_Resize<struct std::_Value_init_tag>(unsigned __int64, struct std::_Value_init_tag const &)")]
[CleanName("Resize")]
internal static partial class Resize_p4x2rua
{
private partial struct LocalVariables
{
public unsafe void* Instruction_0;
public long Instruction_1;
public unsafe void* Instruction_2;
public unsafe void* Instruction_3;
public unsafe void* Instruction_4;
public unsafe void* Instruction_5;
public unsafe void* Instruction_6;
public long Instruction_7;
public unsafe void* Instruction_8;
public long Instruction_9;
public unsafe void* Instruction_10;
}
public unsafe static void Invoke(void* @this, long Newsize, void* Val)
{
StackFrame startFrame = StackFrameList.Current.New<LocalVariables>();
startFrame.GetLocalsRef<LocalVariables>().Instruction_0 = Val;
startFrame.GetLocalsRef<LocalVariables>().Instruction_1 = Newsize;
startFrame.GetLocalsRef<LocalVariables>().Instruction_2 = @this;
void* instruction_ = startFrame.GetLocalsRef<LocalVariables>().Instruction_2;
void* instruction_2 = Getal_jms5hzb.Invoke(instruction_);
startFrame.GetLocalsRef<LocalVariables>().Instruction_3 = instruction_2;
unchecked
{
std_Vector_val* field_ = &((std_vector*)instruction_)->field_0.field_0;
startFrame.GetLocalsRef<LocalVariables>().Instruction_4 = field_;
void** field_2 = &((std_Vector_val*)startFrame.GetLocalsRef<LocalVariables>().Instruction_4)->field_0;
startFrame.GetLocalsRef<LocalVariables>().Instruction_5 = field_2;
void** field_3 = &((std_Vector_val*)startFrame.GetLocalsRef<LocalVariables>().Instruction_4)->field_1;
startFrame.GetLocalsRef<LocalVariables>().Instruction_6 = field_3;
void* instruction_3 = *(void**)startFrame.GetLocalsRef<LocalVariables>().Instruction_6;
void* instruction_4 = *(void**)startFrame.GetLocalsRef<LocalVariables>().Instruction_5;
startFrame.GetLocalsRef<LocalVariables>().Instruction_7 = (long)instruction_3 - (long)instruction_4;
if ((ulong)startFrame.GetLocalsRef<LocalVariables>().Instruction_1 < (ulong)startFrame.GetLocalsRef<LocalVariables>().Instruction_7)
{
void* instruction_5 = *(void**)startFrame.GetLocalsRef<LocalVariables>().Instruction_5;
long instruction_6 = startFrame.GetLocalsRef<LocalVariables>().Instruction_1;
startFrame.GetLocalsRef<LocalVariables>().Instruction_8 = (byte*)instruction_5 + instruction_6;
Orphan_range_334quvb.Invoke(parameter_2: *(void**)startFrame.GetLocalsRef<LocalVariables>().Instruction_6, @this: instruction_, parameter_1: startFrame.GetLocalsRef<LocalVariables>().Instruction_8);
Destroy_range_jjcob5a.Invoke(Al: startFrame.GetLocalsRef<LocalVariables>().Instruction_3, Last: *(void**)startFrame.GetLocalsRef<LocalVariables>().Instruction_6, First: startFrame.GetLocalsRef<LocalVariables>().Instruction_8);
void* instruction_7 = startFrame.GetLocalsRef<LocalVariables>().Instruction_8;
*(void**)startFrame.GetLocalsRef<LocalVariables>().Instruction_6 = instruction_7;
}
else if ((ulong)startFrame.GetLocalsRef<LocalVariables>().Instruction_1 > (ulong)startFrame.GetLocalsRef<LocalVariables>().Instruction_7)
{
void* field_4 = ((std_Vector_val*)startFrame.GetLocalsRef<LocalVariables>().Instruction_4)->field_2;
void* instruction_8 = *(void**)startFrame.GetLocalsRef<LocalVariables>().Instruction_5;
startFrame.GetLocalsRef<LocalVariables>().Instruction_9 = (long)field_4 - (long)instruction_8;
if ((ulong)startFrame.GetLocalsRef<LocalVariables>().Instruction_1 > (ulong)startFrame.GetLocalsRef<LocalVariables>().Instruction_9)
{
Resize_reallocate_dt5hjdb.Invoke(Val: startFrame.GetLocalsRef<LocalVariables>().Instruction_0, @this: instruction_, Newsize: startFrame.GetLocalsRef<LocalVariables>().Instruction_1);
if (ExceptionInfo.Current != null)
{
return;
}
}
else
{
void* instruction_9 = *(void**)startFrame.GetLocalsRef<LocalVariables>().Instruction_6;
startFrame.GetLocalsRef<LocalVariables>().Instruction_10 = instruction_9;
void* ptr = Uninitialized_value_construct_n_cxm3ryd.Invoke(Al: startFrame.GetLocalsRef<LocalVariables>().Instruction_3, Count: startFrame.GetLocalsRef<LocalVariables>().Instruction_1 - startFrame.GetLocalsRef<LocalVariables>().Instruction_7, First: startFrame.GetLocalsRef<LocalVariables>().Instruction_10);
*(void**)startFrame.GetLocalsRef<LocalVariables>().Instruction_6 = ptr;
Orphan_range_334quvb.Invoke(parameter_2: startFrame.GetLocalsRef<LocalVariables>().Instruction_10, @this: instruction_, parameter_1: startFrame.GetLocalsRef<LocalVariables>().Instruction_10);
}
}
StackFrameList.Current.Clear(startFrame);
}
}
}
@@ -0,0 +1,71 @@
using AssetRipper.Conversions.FastPng.Helpers;
using AssetRipper.Conversions.FastPng.Structures;
namespace AssetRipper.Conversions.FastPng.GlobalFunctions;
[MangledName("??$_Resize_reallocate@U_Value_init_tag@std@@@?$vector@EV?$allocator@E@std@@@std@@AEAAX_KAEBU_Value_init_tag@1@@Z")]
[DemangledName("private: void __cdecl std::vector<unsigned char, class std::allocator<unsigned char>>::_Resize_reallocate<struct std::_Value_init_tag>(unsigned __int64, struct std::_Value_init_tag const &)")]
[CleanName("Resize_reallocate")]
internal static partial class Resize_reallocate_63gyyk
{
private partial struct LocalVariables
{
public long field_0;
public std_vector_unsigned_char_Reallocation_guard field_1;
}
[return: NativeType("void")]
public unsafe static void Invoke(void* @this, [MangledName("_Newsize")][NativeType("unsigned __int64")] long Newsize, [MangledName("_Val")][NativeType("struct std::_Value_init_tag const &")] void* Val)
{
StackFrame startFrame = StackFrameList.Current.New<LocalVariables>();
LocalVariables* localsPointer = startFrame.GetLocalsPointer<LocalVariables>();
localsPointer->field_0 = 0L;
localsPointer->field_1 = default(std_vector_unsigned_char_Reallocation_guard);
unchecked
{
if ((ulong)Newsize > (ulong)max_size_zqnixi.Invoke(@this))
{
Xlength_anx5wc.Invoke();
throw null;
}
void* ptr = Getal_vpqbcr.Invoke(@this);
void* myval = &((std_vector_4tqn2f*)@this)->Mypair.Myval2;
void* myfirst = &((std_Vector_val_ghsspe*)myval)->Myfirst;
void* mylast = &((std_Vector_val_ghsspe*)myval)->Mylast;
long num = (long)(nuint)(*(nint*)mylast) - (long)(nuint)(*(nint*)myfirst);
localsPointer->field_0 = Calculate_growth_xjnsmq.Invoke(@this, Newsize);
void* ptr2 = Allocate_at_least_helper_da8z8c.Invoke(ptr, &localsPointer->field_0);
if (ExceptionInfo.Current != null)
{
return;
}
void* ptr3 = ptr2;
void* ptr4 = (byte*)ptr3 + num;
localsPointer->field_1.field_0 = ptr;
localsPointer->field_1.field_1 = ptr3;
localsPointer->field_1.field_2 = localsPointer->field_0;
localsPointer->field_1.field_3 = ptr4;
localsPointer->field_1.field_4 = ptr4;
void* field_ = &localsPointer->field_1.field_4;
void* ptr5 = Uninitialized_value_construct_n_sbfpus.Invoke(ptr4, Newsize - num, ptr);
if (ExceptionInfo.Current == null)
{
*(void**)field_ = ptr5;
Uninitialized_move_uueuvn.Invoke(Al: ptr, Dest: ptr3, Last: *(void**)mylast, First: *(void**)myfirst);
if (ExceptionInfo.Current == null)
{
localsPointer->field_1.field_1 = null;
Change_array_2dpfnj.Invoke(@this, ptr3, Newsize, localsPointer->field_0);
Reallocation_guard_Destructor_r9uyr4.Invoke(&localsPointer->field_1);
StackFrameList.Current.Clear(startFrame);
return;
}
}
ExceptionInfo? current = ExceptionInfo.Current;
ExceptionInfo.Current = null;
Reallocation_guard_Destructor_r9uyr4.Invoke(&localsPointer->field_1);
ExceptionInfo.Current = current;
}
}
}
@@ -1,110 +0,0 @@
using AssetRipper.Conversions.FastPng.Helpers;
using AssetRipper.Conversions.FastPng.Structures;
namespace AssetRipper.Conversions.FastPng.GlobalFunctions;
[MangledName("??$_Resize_reallocate@U_Value_init_tag@std@@@?$vector@EV?$allocator@E@std@@@std@@AEAAX_KAEBU_Value_init_tag@1@@Z")]
[DemangledName("private: void __cdecl std::vector<unsigned char, class std::allocator<unsigned char>>::_Resize_reallocate<struct std::_Value_init_tag>(unsigned __int64, struct std::_Value_init_tag const &)")]
[CleanName("Resize_reallocate")]
internal static partial class Resize_reallocate_dt5hjdb
{
private partial struct LocalVariables
{
public unsafe void* Instruction_0;
public long Instruction_1;
public unsafe void* Instruction_2;
public unsafe void* Instruction_3;
public unsafe void* Instruction_4;
public unsafe void* Instruction_5;
public unsafe void* Instruction_6;
public long Instruction_7;
public long Instruction_8;
public unsafe void* Instruction_9;
public unsafe void* Instruction_10;
public std_vector_unsigned_char_Reallocation_guard Instruction_11;
public unsafe void* Instruction_12;
}
public unsafe static void Invoke(void* @this, long Newsize, void* Val)
{
StackFrame startFrame = StackFrameList.Current.New<LocalVariables>();
long* count = &startFrame.GetLocalsPointer<LocalVariables>()->Instruction_8;
std_vector_unsigned_char_Reallocation_guard* ptr = &startFrame.GetLocalsPointer<LocalVariables>()->Instruction_11;
startFrame.GetLocalsRef<LocalVariables>().Instruction_0 = Val;
startFrame.GetLocalsRef<LocalVariables>().Instruction_1 = Newsize;
startFrame.GetLocalsRef<LocalVariables>().Instruction_2 = @this;
void* instruction_ = startFrame.GetLocalsRef<LocalVariables>().Instruction_2;
unchecked
{
if ((ulong)startFrame.GetLocalsRef<LocalVariables>().Instruction_1 > (ulong)max_size_2yjes5b.Invoke(instruction_))
{
Xlength_zpuxaia.Invoke();
throw null;
}
void* instruction_2 = Getal_jms5hzb.Invoke(instruction_);
startFrame.GetLocalsRef<LocalVariables>().Instruction_3 = instruction_2;
std_Vector_val* field_ = &((std_vector*)instruction_)->field_0.field_0;
startFrame.GetLocalsRef<LocalVariables>().Instruction_4 = field_;
void** field_2 = &((std_Vector_val*)startFrame.GetLocalsRef<LocalVariables>().Instruction_4)->field_0;
startFrame.GetLocalsRef<LocalVariables>().Instruction_5 = field_2;
void** field_3 = &((std_Vector_val*)startFrame.GetLocalsRef<LocalVariables>().Instruction_4)->field_1;
startFrame.GetLocalsRef<LocalVariables>().Instruction_6 = field_3;
void* instruction_3 = *(void**)startFrame.GetLocalsRef<LocalVariables>().Instruction_6;
void* instruction_4 = *(void**)startFrame.GetLocalsRef<LocalVariables>().Instruction_5;
startFrame.GetLocalsRef<LocalVariables>().Instruction_7 = (long)instruction_3 - (long)instruction_4;
long instruction_5 = Calculate_growth_scmxisc.Invoke(instruction_, startFrame.GetLocalsRef<LocalVariables>().Instruction_1);
startFrame.GetLocalsRef<LocalVariables>().Instruction_8 = instruction_5;
void* instruction_6 = Allocate_at_least_helper_wikabbc.Invoke(startFrame.GetLocalsRef<LocalVariables>().Instruction_3, count);
if (ExceptionInfo.Current != null)
{
return;
}
startFrame.GetLocalsRef<LocalVariables>().Instruction_9 = instruction_6;
void* instruction_7 = startFrame.GetLocalsRef<LocalVariables>().Instruction_9;
long instruction_8 = startFrame.GetLocalsRef<LocalVariables>().Instruction_7;
startFrame.GetLocalsRef<LocalVariables>().Instruction_10 = (byte*)instruction_7 + instruction_8;
void** field_4 = &ptr->field_0;
*field_4 = startFrame.GetLocalsRef<LocalVariables>().Instruction_3;
void** field_5 = &ptr->field_1;
*field_5 = startFrame.GetLocalsRef<LocalVariables>().Instruction_9;
long* field_6 = &ptr->field_2;
*field_6 = startFrame.GetLocalsRef<LocalVariables>().Instruction_8;
void** field_7 = &ptr->field_3;
*field_7 = startFrame.GetLocalsRef<LocalVariables>().Instruction_10;
void** field_8 = &ptr->field_4;
*field_8 = startFrame.GetLocalsRef<LocalVariables>().Instruction_10;
void** field_9 = &ptr->field_4;
startFrame.GetLocalsRef<LocalVariables>().Instruction_12 = field_9;
void* ptr2 = Uninitialized_value_construct_n_cxm3ryd.Invoke(Al: startFrame.GetLocalsRef<LocalVariables>().Instruction_3, Count: startFrame.GetLocalsRef<LocalVariables>().Instruction_1 - startFrame.GetLocalsRef<LocalVariables>().Instruction_7, First: startFrame.GetLocalsRef<LocalVariables>().Instruction_10);
if (ExceptionInfo.Current == null)
{
*(void**)startFrame.GetLocalsRef<LocalVariables>().Instruction_12 = ptr2;
Uninitialized_move_vysyj4a.Invoke(Al: startFrame.GetLocalsRef<LocalVariables>().Instruction_3, Dest: startFrame.GetLocalsRef<LocalVariables>().Instruction_9, Last: *(void**)startFrame.GetLocalsRef<LocalVariables>().Instruction_6, First: *(void**)startFrame.GetLocalsRef<LocalVariables>().Instruction_5);
if (ExceptionInfo.Current == null)
{
ptr->field_1 = null;
Change_array_k9lpzqa.Invoke(Newcapacity: startFrame.GetLocalsRef<LocalVariables>().Instruction_8, Newsize: startFrame.GetLocalsRef<LocalVariables>().Instruction_1, @this: instruction_, Newvec: startFrame.GetLocalsRef<LocalVariables>().Instruction_9);
Reallocation_guard_Destructor_9xb7gra.Invoke(ptr);
StackFrameList.Current.Clear(startFrame);
return;
}
}
ExceptionInfo current = ExceptionInfo.Current;
ExceptionInfo.Current = null;
Reallocation_guard_Destructor_9xb7gra.Invoke(ptr);
ExceptionInfo.Current = current;
}
}
}
@@ -0,0 +1,71 @@
using AssetRipper.Conversions.FastPng.Helpers;
using AssetRipper.Conversions.FastPng.Structures;
namespace AssetRipper.Conversions.FastPng.GlobalFunctions;
[MangledName("??$_Resize_reallocate@U_Value_init_tag@std@@@?$vector@_KV?$allocator@_K@std@@@std@@AEAAX_KAEBU_Value_init_tag@1@@Z")]
[DemangledName("private: void __cdecl std::vector<unsigned __int64, class std::allocator<unsigned __int64>>::_Resize_reallocate<struct std::_Value_init_tag>(unsigned __int64, struct std::_Value_init_tag const &)")]
[CleanName("Resize_reallocate")]
internal static partial class Resize_reallocate_jjqf5n
{
private partial struct LocalVariables
{
public long field_0;
public std_vector_unsigned_long_long_Reallocation_guard field_1;
}
[return: NativeType("void")]
public unsafe static void Invoke(void* @this, [MangledName("_Newsize")][NativeType("unsigned __int64")] long Newsize, [MangledName("_Val")][NativeType("struct std::_Value_init_tag const &")] void* Val)
{
StackFrame startFrame = StackFrameList.Current.New<LocalVariables>();
LocalVariables* localsPointer = startFrame.GetLocalsPointer<LocalVariables>();
localsPointer->field_0 = 0L;
localsPointer->field_1 = default(std_vector_unsigned_long_long_Reallocation_guard);
unchecked
{
if ((ulong)Newsize > (ulong)max_size_t88hhi.Invoke(@this))
{
Xlength_4tkvw9.Invoke();
throw null;
}
void* ptr = Getal_ie7hg9.Invoke(@this);
void* myval = &((std_vector_ucmdxb*)@this)->Mypair.Myval2;
void* myfirst = &((std_Vector_val_i7igbu*)myval)->Myfirst;
void* mylast = &((std_Vector_val_i7igbu*)myval)->Mylast;
long num = ((long)(nuint)(*(nint*)mylast) - (long)(nuint)(*(nint*)myfirst)) / 8L;
localsPointer->field_0 = Calculate_growth_2ntm6t.Invoke(@this, Newsize);
void* ptr2 = Allocate_at_least_helper_2ny77t.Invoke(ptr, &localsPointer->field_0);
if (ExceptionInfo.Current != null)
{
return;
}
void* ptr3 = ptr2;
void* ptr4 = (byte*)ptr3 + (nint)num * 8;
localsPointer->field_1.field_0 = ptr;
localsPointer->field_1.field_1 = ptr3;
localsPointer->field_1.field_2 = localsPointer->field_0;
localsPointer->field_1.field_3 = ptr4;
localsPointer->field_1.field_4 = ptr4;
void* field_ = &localsPointer->field_1.field_4;
void* ptr5 = Uninitialized_value_construct_n_e2x86x.Invoke(ptr4, Newsize - num, ptr);
if (ExceptionInfo.Current == null)
{
*(void**)field_ = ptr5;
Uninitialized_move_5rztdf.Invoke(Al: ptr, Dest: ptr3, Last: *(void**)mylast, First: *(void**)myfirst);
if (ExceptionInfo.Current == null)
{
localsPointer->field_1.field_1 = null;
Change_array_nieg7e.Invoke(@this, ptr3, Newsize, localsPointer->field_0);
Reallocation_guard_Destructor_fq2gtv.Invoke(&localsPointer->field_1);
StackFrameList.Current.Clear(startFrame);
return;
}
}
ExceptionInfo? current = ExceptionInfo.Current;
ExceptionInfo.Current = null;
Reallocation_guard_Destructor_fq2gtv.Invoke(&localsPointer->field_1);
ExceptionInfo.Current = current;
}
}
}
@@ -1,109 +0,0 @@
using AssetRipper.Conversions.FastPng.Helpers;
using AssetRipper.Conversions.FastPng.Structures;
namespace AssetRipper.Conversions.FastPng.GlobalFunctions;
[MangledName("??$_Resize_reallocate@U_Value_init_tag@std@@@?$vector@_KV?$allocator@_K@std@@@std@@AEAAX_KAEBU_Value_init_tag@1@@Z")]
[DemangledName("private: void __cdecl std::vector<unsigned __int64, class std::allocator<unsigned __int64>>::_Resize_reallocate<struct std::_Value_init_tag>(unsigned __int64, struct std::_Value_init_tag const &)")]
[CleanName("Resize_reallocate")]
internal static partial class Resize_reallocate_ytnsorc
{
private partial struct LocalVariables
{
public unsafe void* Instruction_0;
public long Instruction_1;
public unsafe void* Instruction_2;
public unsafe void* Instruction_3;
public unsafe void* Instruction_4;
public unsafe void* Instruction_5;
public unsafe void* Instruction_6;
public long Instruction_7;
public long Instruction_8;
public unsafe void* Instruction_9;
public unsafe void* Instruction_10;
public std_vector_unsigned_long_long_Reallocation_guard Instruction_11;
public unsafe void* Instruction_12;
}
public unsafe static void Invoke(void* @this, long Newsize, void* Val)
{
StackFrame startFrame = StackFrameList.Current.New<LocalVariables>();
long* count = &startFrame.GetLocalsPointer<LocalVariables>()->Instruction_8;
std_vector_unsigned_long_long_Reallocation_guard* ptr = &startFrame.GetLocalsPointer<LocalVariables>()->Instruction_11;
startFrame.GetLocalsRef<LocalVariables>().Instruction_0 = Val;
startFrame.GetLocalsRef<LocalVariables>().Instruction_1 = Newsize;
startFrame.GetLocalsRef<LocalVariables>().Instruction_2 = @this;
void* instruction_ = startFrame.GetLocalsRef<LocalVariables>().Instruction_2;
unchecked
{
if ((ulong)startFrame.GetLocalsRef<LocalVariables>().Instruction_1 > (ulong)max_size_kyvxnnb.Invoke(instruction_))
{
Xlength_zmqdsxa.Invoke();
throw null;
}
void* instruction_2 = Getal_kuj7nva.Invoke(instruction_);
startFrame.GetLocalsRef<LocalVariables>().Instruction_3 = instruction_2;
std_Vector_val_9* field_ = &((std_vector_5*)instruction_)->field_0.field_0;
startFrame.GetLocalsRef<LocalVariables>().Instruction_4 = field_;
void** field_2 = &((std_Vector_val_9*)startFrame.GetLocalsRef<LocalVariables>().Instruction_4)->field_0;
startFrame.GetLocalsRef<LocalVariables>().Instruction_5 = field_2;
void** field_3 = &((std_Vector_val_9*)startFrame.GetLocalsRef<LocalVariables>().Instruction_4)->field_1;
startFrame.GetLocalsRef<LocalVariables>().Instruction_6 = field_3;
long instruction_3 = ((long)(nuint)(*(nint*)startFrame.GetLocalsRef<LocalVariables>().Instruction_6) - (long)(nuint)(*(nint*)startFrame.GetLocalsRef<LocalVariables>().Instruction_5)) / 8L;
startFrame.GetLocalsRef<LocalVariables>().Instruction_7 = instruction_3;
long instruction_4 = Calculate_growth_vbhwmec.Invoke(instruction_, startFrame.GetLocalsRef<LocalVariables>().Instruction_1);
startFrame.GetLocalsRef<LocalVariables>().Instruction_8 = instruction_4;
void* instruction_5 = Allocate_at_least_helper_l9zi7qb.Invoke(startFrame.GetLocalsRef<LocalVariables>().Instruction_3, count);
if (ExceptionInfo.Current != null)
{
return;
}
startFrame.GetLocalsRef<LocalVariables>().Instruction_9 = instruction_5;
void* instruction_6 = startFrame.GetLocalsRef<LocalVariables>().Instruction_9;
long instruction_7 = startFrame.GetLocalsRef<LocalVariables>().Instruction_7;
startFrame.GetLocalsRef<LocalVariables>().Instruction_10 = (byte*)instruction_6 + (nint)instruction_7 * 8;
void** field_4 = &ptr->field_0;
*field_4 = startFrame.GetLocalsRef<LocalVariables>().Instruction_3;
void** field_5 = &ptr->field_1;
*field_5 = startFrame.GetLocalsRef<LocalVariables>().Instruction_9;
long* field_6 = &ptr->field_2;
*field_6 = startFrame.GetLocalsRef<LocalVariables>().Instruction_8;
void** field_7 = &ptr->field_3;
*field_7 = startFrame.GetLocalsRef<LocalVariables>().Instruction_10;
void** field_8 = &ptr->field_4;
*field_8 = startFrame.GetLocalsRef<LocalVariables>().Instruction_10;
void** field_9 = &ptr->field_4;
startFrame.GetLocalsRef<LocalVariables>().Instruction_12 = field_9;
void* ptr2 = Uninitialized_value_construct_n_hqowyoc.Invoke(Al: startFrame.GetLocalsRef<LocalVariables>().Instruction_3, Count: startFrame.GetLocalsRef<LocalVariables>().Instruction_1 - startFrame.GetLocalsRef<LocalVariables>().Instruction_7, First: startFrame.GetLocalsRef<LocalVariables>().Instruction_10);
if (ExceptionInfo.Current == null)
{
*(void**)startFrame.GetLocalsRef<LocalVariables>().Instruction_12 = ptr2;
Uninitialized_move_cbc4pbc.Invoke(Al: startFrame.GetLocalsRef<LocalVariables>().Instruction_3, Dest: startFrame.GetLocalsRef<LocalVariables>().Instruction_9, Last: *(void**)startFrame.GetLocalsRef<LocalVariables>().Instruction_6, First: *(void**)startFrame.GetLocalsRef<LocalVariables>().Instruction_5);
if (ExceptionInfo.Current == null)
{
ptr->field_1 = null;
Change_array_hgqy2vc.Invoke(Newcapacity: startFrame.GetLocalsRef<LocalVariables>().Instruction_8, Newsize: startFrame.GetLocalsRef<LocalVariables>().Instruction_1, @this: instruction_, Newvec: startFrame.GetLocalsRef<LocalVariables>().Instruction_9);
Reallocation_guard_Destructor_jfaqped.Invoke(ptr);
StackFrameList.Current.Clear(startFrame);
return;
}
}
ExceptionInfo current = ExceptionInfo.Current;
ExceptionInfo.Current = null;
Reallocation_guard_Destructor_jfaqped.Invoke(ptr);
ExceptionInfo.Current = current;
}
}
}
@@ -0,0 +1,51 @@
using System;
using AssetRipper.Conversions.FastPng.Helpers;
using AssetRipper.Conversions.FastPng.Structures;
namespace AssetRipper.Conversions.FastPng.GlobalFunctions;
[MangledName("??$_Resize@U_Value_init_tag@std@@@?$vector@EV?$allocator@E@std@@@std@@AEAAX_KAEBU_Value_init_tag@1@@Z")]
[DemangledName("private: void __cdecl std::vector<unsigned char, class std::allocator<unsigned char>>::_Resize<struct std::_Value_init_tag>(unsigned __int64, struct std::_Value_init_tag const &)")]
[CleanName("Resize")]
internal static partial class Resize_zwsk2t
{
[return: NativeType("void")]
public unsafe static void Invoke(void* @this, [MangledName("_Newsize")][NativeType("unsigned __int64")] long Newsize, [MangledName("_Val")][NativeType("struct std::_Value_init_tag const &")] void* Val)
{
void* al = Getal_vpqbcr.Invoke(@this);
unchecked
{
void* myval = &((std_vector_4tqn2f*)@this)->Mypair.Myval2;
void* myfirst = &((std_Vector_val_ghsspe*)myval)->Myfirst;
void* mylast = &((std_Vector_val_ghsspe*)myval)->Mylast;
long num = (long)(nuint)(*(nint*)mylast) - (long)(nuint)(*(nint*)myfirst);
if ((ulong)Newsize < (ulong)num)
{
void* ptr = (void*)((nint)(*(IntPtr*)myfirst) + (nint)Newsize);
Orphan_range_xjvz63.Invoke(@this, ptr, *(void**)mylast);
Destroy_range_6evibt.Invoke(ptr, *(void**)mylast, al);
*(void**)mylast = ptr;
}
else
{
if ((ulong)Newsize <= (ulong)num)
{
return;
}
if ((ulong)Newsize > (ulong)((long)((std_Vector_val_ghsspe*)myval)->Myend - (long)(nuint)(*(nint*)myfirst)))
{
Resize_reallocate_63gyyk.Invoke(@this, Newsize, Val);
if (ExceptionInfo.Current == null)
{
}
}
else
{
void* ptr2 = *(void**)mylast;
*(void**)mylast = Uninitialized_value_construct_n_sbfpus.Invoke(ptr2, Newsize - num, al);
Orphan_range_xjvz63.Invoke(@this, ptr2, ptr2);
}
}
}
}
}
@@ -11,14 +11,16 @@ internal static partial class Throw_bad_array_new_length
{
private partial struct LocalVariables
{
public std_bad_array_new_length Instruction_0;
public std_bad_array_new_length field_0;
}
[return: NativeType("void")]
public unsafe static void Invoke()
{
std_bad_array_new_length* ptr = &StackFrameList.Current.New<LocalVariables>().GetLocalsPointer<LocalVariables>()->Instruction_0;
bad_array_new_length_Constructor_fnjru5d.Invoke(ptr);
CxxThrowException.Invoke(ptr, TI3_AVbad_array_new_length_std.__pointer);
LocalVariables* localsPointer = StackFrameList.Current.New<LocalVariables>().GetLocalsPointer<LocalVariables>();
localsPointer->field_0 = default(std_bad_array_new_length);
bad_array_new_length_Constructor_ygbqdc.Invoke(&localsPointer->field_0);
CxxThrowException.Invoke(&localsPointer->field_0, TI3_AVbad_array_new_length_std.__pointer);
if (ExceptionInfo.Current != null)
{
return;
@@ -0,0 +1,33 @@
using System;
using AssetRipper.Conversions.FastPng.Helpers;
using AssetRipper.Conversions.FastPng.Structures;
namespace AssetRipper.Conversions.FastPng.GlobalFunctions;
[MangledName("?_Tidy@?$vector@_KV?$allocator@_K@std@@@std@@AEAAXXZ")]
[DemangledName("private: void __cdecl std::vector<unsigned __int64, class std::allocator<unsigned __int64>>::_Tidy(void)")]
[CleanName("Tidy")]
internal static partial class Tidy_2eisfw
{
[return: NativeType("void")]
public unsafe static void Invoke(void* @this)
{
void* ptr = Getal_ie7hg9.Invoke(@this);
unchecked
{
void* myval = &((std_vector_ucmdxb*)@this)->Mypair.Myval2;
void* myfirst = &((std_Vector_val_i7igbu*)myval)->Myfirst;
void* mylast = &((std_Vector_val_i7igbu*)myval)->Mylast;
void* myend = &((std_Vector_val_i7igbu*)myval)->Myend;
Orphan_all.Invoke(myval);
if (*(IntPtr*)myfirst != (IntPtr)(nint)0)
{
Destroy_range_eprs33.Invoke(Al: ptr, Last: *(void**)mylast, First: *(void**)myfirst);
deallocate_hcscub.Invoke(ptr, Count: ((long)(nuint)(*(nint*)myend) - (long)(nuint)(*(nint*)myfirst)) / 8L, Ptr: *(void**)myfirst);
*(IntPtr*)myfirst = (nint)0;
*(IntPtr*)mylast = (nint)0;
*(IntPtr*)myend = (nint)0;
}
}
}
}
@@ -11,9 +11,9 @@ internal static partial class Tidy_guard_class_std_vector_unsigned_int_class_std
{
unchecked
{
if (((std_Tidy_guard*)@this)->field_0 != null)
if (((std_Tidy_guard*)@this)->Target != null)
{
Tidy_kyqxybb.Invoke(((std_Tidy_guard*)@this)->field_0);
Tidy_t4s52y.Invoke(((std_Tidy_guard*)@this)->Target);
}
}
}
@@ -1,32 +0,0 @@
using System;
using AssetRipper.Conversions.FastPng.Helpers;
using AssetRipper.Conversions.FastPng.Structures;
namespace AssetRipper.Conversions.FastPng.GlobalFunctions;
[MangledName("?_Tidy@?$vector@_KV?$allocator@_K@std@@@std@@AEAAXXZ")]
[DemangledName("private: void __cdecl std::vector<unsigned __int64, class std::allocator<unsigned __int64>>::_Tidy(void)")]
[CleanName("Tidy")]
internal static partial class Tidy_hq3jjxb
{
public unsafe static void Invoke(void* @this)
{
void* ptr = Getal_kuj7nva.Invoke(@this);
unchecked
{
void* field_ = &((std_vector_5*)@this)->field_0.field_0;
void* field_2 = &((std_Vector_val_9*)field_)->field_0;
void* field_3 = &((std_Vector_val_9*)field_)->field_1;
void* field_4 = &((std_Vector_val_9*)field_)->field_2;
Orphan_all.Invoke(field_);
if (*(IntPtr*)field_2 != (IntPtr)(nint)0)
{
Destroy_range_qbzp7xb.Invoke(Al: ptr, Last: *(void**)field_3, First: *(void**)field_2);
deallocate_yb2gvqa.Invoke(ptr, Count: ((long)(nuint)(*(nint*)field_4) - (long)(nuint)(*(nint*)field_2)) / 8L, Ptr: *(void**)field_2);
*(IntPtr*)field_2 = (nint)0;
*(IntPtr*)field_3 = (nint)0;
*(IntPtr*)field_4 = (nint)0;
}
}
}
}
@@ -1,32 +0,0 @@
using System;
using AssetRipper.Conversions.FastPng.Helpers;
using AssetRipper.Conversions.FastPng.Structures;
namespace AssetRipper.Conversions.FastPng.GlobalFunctions;
[MangledName("?_Tidy@?$vector@EV?$allocator@E@std@@@std@@AEAAXXZ")]
[DemangledName("private: void __cdecl std::vector<unsigned char, class std::allocator<unsigned char>>::_Tidy(void)")]
[CleanName("Tidy")]
internal static partial class Tidy_iono57d
{
public unsafe static void Invoke(void* @this)
{
void* ptr = Getal_jms5hzb.Invoke(@this);
unchecked
{
void* field_ = &((std_vector*)@this)->field_0.field_0;
void* field_2 = &((std_Vector_val*)field_)->field_0;
void* field_3 = &((std_Vector_val*)field_)->field_1;
void* field_4 = &((std_Vector_val*)field_)->field_2;
Orphan_all.Invoke(field_);
if (*(IntPtr*)field_2 != (IntPtr)(nint)0)
{
Destroy_range_jjcob5a.Invoke(Al: ptr, Last: *(void**)field_3, First: *(void**)field_2);
deallocate_mc9rbjc.Invoke(ptr, Count: (long)(nuint)(*(nint*)field_4) - (long)(nuint)(*(nint*)field_2), Ptr: *(void**)field_2);
*(IntPtr*)field_2 = (nint)0;
*(IntPtr*)field_3 = (nint)0;
*(IntPtr*)field_4 = (nint)0;
}
}
}
}
@@ -1,32 +0,0 @@
using System;
using AssetRipper.Conversions.FastPng.Helpers;
using AssetRipper.Conversions.FastPng.Structures;
namespace AssetRipper.Conversions.FastPng.GlobalFunctions;
[MangledName("?_Tidy@?$vector@IV?$allocator@I@std@@@std@@AEAAXXZ")]
[DemangledName("private: void __cdecl std::vector<unsigned int, class std::allocator<unsigned int>>::_Tidy(void)")]
[CleanName("Tidy")]
internal static partial class Tidy_kyqxybb
{
public unsafe static void Invoke(void* @this)
{
void* ptr = Getal_t2pmqoc.Invoke(@this);
unchecked
{
void* field_ = &((std_vector_0*)@this)->field_0.field_0;
void* field_2 = &((std_Vector_val_4*)field_)->field_0;
void* field_3 = &((std_Vector_val_4*)field_)->field_1;
void* field_4 = &((std_Vector_val_4*)field_)->field_2;
Orphan_all.Invoke(field_);
if (*(IntPtr*)field_2 != (IntPtr)(nint)0)
{
Destroy_range_9rluabc.Invoke(Al: ptr, Last: *(void**)field_3, First: *(void**)field_2);
deallocate_gfl4ncc.Invoke(ptr, Count: ((long)(nuint)(*(nint*)field_4) - (long)(nuint)(*(nint*)field_2)) / 4L, Ptr: *(void**)field_2);
*(IntPtr*)field_2 = (nint)0;
*(IntPtr*)field_3 = (nint)0;
*(IntPtr*)field_4 = (nint)0;
}
}
}
}
@@ -0,0 +1,33 @@
using System;
using AssetRipper.Conversions.FastPng.Helpers;
using AssetRipper.Conversions.FastPng.Structures;
namespace AssetRipper.Conversions.FastPng.GlobalFunctions;
[MangledName("?_Tidy@?$vector@IV?$allocator@I@std@@@std@@AEAAXXZ")]
[DemangledName("private: void __cdecl std::vector<unsigned int, class std::allocator<unsigned int>>::_Tidy(void)")]
[CleanName("Tidy")]
internal static partial class Tidy_t4s52y
{
[return: NativeType("void")]
public unsafe static void Invoke(void* @this)
{
void* ptr = Getal_jb66tx.Invoke(@this);
unchecked
{
void* myval = &((std_vector_jsyy6a*)@this)->Mypair.Myval2;
void* myfirst = &((std_Vector_val_fju23j*)myval)->Myfirst;
void* mylast = &((std_Vector_val_fju23j*)myval)->Mylast;
void* myend = &((std_Vector_val_fju23j*)myval)->Myend;
Orphan_all.Invoke(myval);
if (*(IntPtr*)myfirst != (IntPtr)(nint)0)
{
Destroy_range_vpmzer.Invoke(Al: ptr, Last: *(void**)mylast, First: *(void**)myfirst);
deallocate_dfgvkh.Invoke(ptr, Count: ((long)(nuint)(*(nint*)myend) - (long)(nuint)(*(nint*)myfirst)) / 4L, Ptr: *(void**)myfirst);
*(IntPtr*)myfirst = (nint)0;
*(IntPtr*)mylast = (nint)0;
*(IntPtr*)myend = (nint)0;
}
}
}
}
@@ -0,0 +1,33 @@
using System;
using AssetRipper.Conversions.FastPng.Helpers;
using AssetRipper.Conversions.FastPng.Structures;
namespace AssetRipper.Conversions.FastPng.GlobalFunctions;
[MangledName("?_Tidy@?$vector@EV?$allocator@E@std@@@std@@AEAAXXZ")]
[DemangledName("private: void __cdecl std::vector<unsigned char, class std::allocator<unsigned char>>::_Tidy(void)")]
[CleanName("Tidy")]
internal static partial class Tidy_uaj7br
{
[return: NativeType("void")]
public unsafe static void Invoke(void* @this)
{
void* ptr = Getal_vpqbcr.Invoke(@this);
unchecked
{
void* myval = &((std_vector_4tqn2f*)@this)->Mypair.Myval2;
void* myfirst = &((std_Vector_val_ghsspe*)myval)->Myfirst;
void* mylast = &((std_Vector_val_ghsspe*)myval)->Mylast;
void* myend = &((std_Vector_val_ghsspe*)myval)->Myend;
Orphan_all.Invoke(myval);
if (*(IntPtr*)myfirst != (IntPtr)(nint)0)
{
Destroy_range_6evibt.Invoke(Al: ptr, Last: *(void**)mylast, First: *(void**)myfirst);
deallocate_572ymf.Invoke(ptr, Count: (long)(nuint)(*(nint*)myend) - (long)(nuint)(*(nint*)myfirst), Ptr: *(void**)myfirst);
*(IntPtr*)myfirst = (nint)0;
*(IntPtr*)mylast = (nint)0;
*(IntPtr*)myend = (nint)0;
}
}
}
}
@@ -5,9 +5,10 @@ namespace AssetRipper.Conversions.FastPng.GlobalFunctions;
[MangledName("??$_To_address@PEAE@std@@YA?A_PAEBQEAE@Z")]
[DemangledName("auto __cdecl std::_To_address<unsigned char *>(unsigned char *const &)")]
[CleanName("To_address")]
internal static partial class To_address_enkoctc
internal static partial class To_address_e887gk
{
public unsafe static void* Invoke(void* Val)
[return: NativeType("auto")]
public unsafe static void* Invoke([MangledName("_Val")][NativeType("unsigned char *const &")] void* Val)
{
return *unchecked((void**)Val);
}
@@ -5,9 +5,10 @@ namespace AssetRipper.Conversions.FastPng.GlobalFunctions;
[MangledName("??$_To_address@PEA_K@std@@YA?A_PAEBQEA_K@Z")]
[DemangledName("auto __cdecl std::_To_address<unsigned __int64 *>(unsigned __int64 *const &)")]
[CleanName("To_address")]
internal static partial class To_address_l9253rd
internal static partial class To_address_uy47kg
{
public unsafe static void* Invoke(void* Val)
[return: NativeType("auto")]
public unsafe static void* Invoke([MangledName("_Val")][NativeType("unsigned __int64 *const &")] void* Val)
{
return *unchecked((void**)Val);
}
@@ -5,9 +5,10 @@ namespace AssetRipper.Conversions.FastPng.GlobalFunctions;
[MangledName("??$_To_address@PEAI@std@@YA?A_PAEBQEAI@Z")]
[DemangledName("auto __cdecl std::_To_address<unsigned int *>(unsigned int *const &)")]
[CleanName("To_address")]
internal static partial class To_address_aoz7nfb
internal static partial class To_address_vfzm44
{
public unsafe static void* Invoke(void* Val)
[return: NativeType("auto")]
public unsafe static void* Invoke([MangledName("_Val")][NativeType("unsigned int *const &")] void* Val)
{
return *unchecked((void**)Val);
}
@@ -5,9 +5,10 @@ namespace AssetRipper.Conversions.FastPng.GlobalFunctions;
[MangledName("??$_Unfancy@_K@std@@YAPEA_KPEA_K@Z")]
[DemangledName("unsigned __int64 * __cdecl std::_Unfancy<unsigned __int64>(unsigned __int64 *)")]
[CleanName("Unfancy")]
internal static partial class Unfancy_z2hkbxa
internal static partial class Unfancy_2hrtxn
{
public unsafe static void* Invoke(void* Ptr)
[return: NativeType("unsigned __int64 *")]
public unsafe static void* Invoke([MangledName("_Ptr")][NativeType("unsigned __int64 *")] void* Ptr)
{
return Ptr;
}
@@ -5,9 +5,10 @@ namespace AssetRipper.Conversions.FastPng.GlobalFunctions;
[MangledName("??$_Unfancy_maybe_null@I@std@@YAPEAIPEAI@Z")]
[DemangledName("unsigned int * __cdecl std::_Unfancy_maybe_null<unsigned int>(unsigned int *)")]
[CleanName("Unfancy_maybe_null")]
internal static partial class Unfancy_maybe_null_ys5czvb
internal static partial class Unfancy_maybe_null_78x93g
{
public unsafe static void* Invoke(void* Ptr)
[return: NativeType("unsigned int *")]
public unsafe static void* Invoke([MangledName("_Ptr")][NativeType("unsigned int *")] void* Ptr)
{
return Ptr;
}
@@ -5,9 +5,10 @@ namespace AssetRipper.Conversions.FastPng.GlobalFunctions;
[MangledName("??$_Unfancy_maybe_null@E@std@@YAPEAEPEAE@Z")]
[DemangledName("unsigned char * __cdecl std::_Unfancy_maybe_null<unsigned char>(unsigned char *)")]
[CleanName("Unfancy_maybe_null")]
internal static partial class Unfancy_maybe_null_pj5f7cb
internal static partial class Unfancy_maybe_null_gt4y67
{
public unsafe static void* Invoke(void* Ptr)
[return: NativeType("unsigned char *")]
public unsafe static void* Invoke([MangledName("_Ptr")][NativeType("unsigned char *")] void* Ptr)
{
return Ptr;
}
@@ -5,9 +5,10 @@ namespace AssetRipper.Conversions.FastPng.GlobalFunctions;
[MangledName("??$_Unfancy_maybe_null@_K@std@@YAPEA_KPEA_K@Z")]
[DemangledName("unsigned __int64 * __cdecl std::_Unfancy_maybe_null<unsigned __int64>(unsigned __int64 *)")]
[CleanName("Unfancy_maybe_null")]
internal static partial class Unfancy_maybe_null_uqd3pbd
internal static partial class Unfancy_maybe_null_q2cruh
{
public unsafe static void* Invoke(void* Ptr)
[return: NativeType("unsigned __int64 *")]
public unsafe static void* Invoke([MangledName("_Ptr")][NativeType("unsigned __int64 *")] void* Ptr)
{
return Ptr;
}
@@ -5,9 +5,10 @@ namespace AssetRipper.Conversions.FastPng.GlobalFunctions;
[MangledName("??$_Unfancy@I@std@@YAPEAIPEAI@Z")]
[DemangledName("unsigned int * __cdecl std::_Unfancy<unsigned int>(unsigned int *)")]
[CleanName("Unfancy")]
internal static partial class Unfancy_xjzn42c
internal static partial class Unfancy_up4piv
{
public unsafe static void* Invoke(void* Ptr)
[return: NativeType("unsigned int *")]
public unsafe static void* Invoke([MangledName("_Ptr")][NativeType("unsigned int *")] void* Ptr)
{
return Ptr;
}
@@ -5,9 +5,10 @@ namespace AssetRipper.Conversions.FastPng.GlobalFunctions;
[MangledName("??$_Unfancy@E@std@@YAPEAEPEAE@Z")]
[DemangledName("unsigned char * __cdecl std::_Unfancy<unsigned char>(unsigned char *)")]
[CleanName("Unfancy")]
internal static partial class Unfancy_aszk3nc
internal static partial class Unfancy_zvjymc
{
public unsafe static void* Invoke(void* Ptr)
[return: NativeType("unsigned char *")]
public unsafe static void* Invoke([MangledName("_Ptr")][NativeType("unsigned char *")] void* Ptr)
{
return Ptr;
}
Loaded 100 of 471 files, more files were not shown because too many files have changed in this diff. Show more