mirror of
https://github.com/AssetRipper/AssetRipper.Conversions.FastPng.git
synced 2026-11-13 12:41:25 -10:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c68a76ab3c | ||
|
|
7bea12dd0c | ||
|
|
b154e722e8 | ||
|
|
f5dc8b22ee | ||
|
|
856621a002 | ||
|
|
48ce8fc0dc | ||
|
|
31cc453ee3 | ||
|
|
4e211b20f7 | ||
|
|
6c29ce4b3e | ||
|
|
c2e243f88b | ||
|
|
d59c42fb8d | ||
|
|
b3b9c27264 |
No files matched your search
@@ -0,0 +1,28 @@
|
||||
# This workflow will build a .NET project
|
||||
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
|
||||
|
||||
name: .NET
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ "master" ]
|
||||
pull_request:
|
||||
branches: [ "master" ]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Setup .NET
|
||||
uses: actions/setup-dotnet@v4
|
||||
with:
|
||||
dotnet-version: 9.0.x
|
||||
- name: Restore dependencies
|
||||
run: dotnet restore
|
||||
- name: Build
|
||||
run: dotnet build --no-restore
|
||||
- name: Test
|
||||
run: dotnet test --no-build --verbosity normal
|
||||
@@ -0,0 +1,33 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net9.0</TargetFramework>
|
||||
<LangVersion>latest</LangVersion>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
<IsPackable>false</IsPackable>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="coverlet.collector" Version="6.0.4">
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||
</PackageReference>
|
||||
<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.2.0" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\AssetRipper.Conversions.FastPng\AssetRipper.Conversions.FastPng.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Using Include="NUnit.Framework" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
@@ -0,0 +1,41 @@
|
||||
namespace AssetRipper.Conversions.FastPng.Tests;
|
||||
|
||||
public class Tests
|
||||
{
|
||||
[Test]
|
||||
public void EncodingNoPixelsThrows()
|
||||
{
|
||||
Assert.Throws<ArgumentOutOfRangeException>(() => FPng.EncodeImageToMemory([], 0, 0));
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void EncodingGradientIsSuccessful()
|
||||
{
|
||||
int width = 1024;
|
||||
int height = 1024;
|
||||
byte[] rawPixelData = CreatePixels(width, height);
|
||||
byte[] encodedData = FPng.EncodeImageToMemory(rawPixelData, width, height);
|
||||
Assert.That(encodedData, Is.Not.Empty);
|
||||
}
|
||||
|
||||
static byte[] CreatePixels(int width, int height)
|
||||
{
|
||||
int index = 0;
|
||||
byte[] data = new byte[width * height * 3]; // RGB format
|
||||
for (int x = 0; x < width; x++)
|
||||
{
|
||||
for (int y = 0; y < height; y++)
|
||||
{
|
||||
// Create a simple gradient
|
||||
int r = (x * 255) / width;
|
||||
int g = (y * 255) / height;
|
||||
int b = ((x + y) * 255) / (width + height);
|
||||
|
||||
data[index++] = (byte)r;
|
||||
data[index++] = (byte)g;
|
||||
data[index++] = (byte)b;
|
||||
}
|
||||
}
|
||||
return data;
|
||||
}
|
||||
}
|
||||
@@ -1,40 +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
|
||||
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
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
SolutionGuid = {AA5F7369-0335-4669-A2F5-B2D7A9293086}
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
@@ -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>
|
||||
|
||||
@@ -3,15 +3,19 @@ using System;
|
||||
|
||||
namespace AssetRipper.Conversions.FastPng;
|
||||
|
||||
public static class FPng
|
||||
public static partial class FPng
|
||||
{
|
||||
public static unsafe byte[] EncodeImageToMemory(ReadOnlySpan<byte> imageData, int width, int height)
|
||||
{
|
||||
ArgumentOutOfRangeException.ThrowIfNegativeOrZero(width);
|
||||
ArgumentOutOfRangeException.ThrowIfNegativeOrZero(height);
|
||||
|
||||
int pixelCount = width * height;
|
||||
if (imageData.Length % pixelCount != 0)
|
||||
{
|
||||
throw new ArgumentException("Image data length is not a multiple of pixel count.");
|
||||
}
|
||||
|
||||
int channelCount = imageData.Length / pixelCount;
|
||||
if (channelCount is not 3 and not 4)
|
||||
{
|
||||
@@ -19,28 +23,28 @@ public static class FPng
|
||||
}
|
||||
|
||||
byte[] result;
|
||||
std_vector vector = default;
|
||||
std_vector* vectorPtr = &vector;
|
||||
GlobalFunctions.vector_unsigned_char_class_std_allocator_unsigned_char_Constructor(vectorPtr); // Constructor
|
||||
std_vector_4tqn2f vector = default;
|
||||
std_vector_4tqn2f* vectorPtr = &vector;
|
||||
vector_unsigned_char_class_std_allocator_unsigned_char_Constructor(vectorPtr); // Constructor
|
||||
try
|
||||
{
|
||||
fixed (byte* ptr = imageData)
|
||||
{
|
||||
GlobalFunctions.fpng_encode_image_to_memory(ptr, width, height, channelCount, vectorPtr, default);
|
||||
fpng_encode_image_to_memory(ptr, width, height, channelCount, vectorPtr, default);
|
||||
}
|
||||
result = vector.AsSpan<byte>().ToArray();
|
||||
}
|
||||
finally
|
||||
{
|
||||
GlobalFunctions.vector_unsigned_char_class_std_allocator_unsigned_char_Destructor(vectorPtr); // Destructor
|
||||
vector_unsigned_char_class_std_allocator_unsigned_char_Destructor(vectorPtr); // Destructor
|
||||
}
|
||||
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);
|
||||
}
|
||||
|
||||
+23
@@ -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
|
||||
}
|
||||
+19
@@ -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
|
||||
}
|
||||
+12
@@ -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
|
||||
}
|
||||
+11
@@ -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
-12356
File diff suppressed because it is too large.
Load diff
-1349
File diff suppressed because it is too large.
Load diff
+26
@@ -0,0 +1,26 @@
|
||||
using System;
|
||||
using AssetRipper.Conversions.FastPng.Helpers;
|
||||
using AssetRipper.Conversions.FastPng.Intrinsics.Implemented;
|
||||
|
||||
namespace AssetRipper.Conversions.FastPng.GlobalFunctions;
|
||||
|
||||
[MangledName("?_Adjust_manually_vector_aligned@std@@YAXAEAPEAXAEA_K@Z")]
|
||||
[DemangledName("void __cdecl std::_Adjust_manually_vector_aligned(void *&, unsigned __int64 &)")]
|
||||
internal static partial class Adjust_manually_vector_aligned
|
||||
{
|
||||
[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 = (long)(nuint)(*(nint*)Ptr) - num;
|
||||
if ((ulong)num2 < 8uL || (ulong)num2 > 39uL)
|
||||
{
|
||||
llvm_trap.Invoke();
|
||||
}
|
||||
*(IntPtr*)Ptr = (nint)num;
|
||||
}
|
||||
}
|
||||
}
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
using AssetRipper.Conversions.FastPng.Helpers;
|
||||
|
||||
namespace AssetRipper.Conversions.FastPng.GlobalFunctions;
|
||||
|
||||
[MangledName("?_Alloc_proxy@_Container_base0@std@@QEAAXAEBU_Fake_allocator@2@@Z")]
|
||||
[DemangledName("public: void __cdecl std::_Container_base0::_Alloc_proxy(struct std::_Fake_allocator const &)")]
|
||||
internal static partial class Alloc_proxy
|
||||
{
|
||||
[return: NativeType("void")]
|
||||
public unsafe static void Invoke(void* @this, [NativeType("struct std::_Fake_allocator const &")] void* parameter_1)
|
||||
{
|
||||
}
|
||||
}
|
||||
+28
@@ -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);
|
||||
}
|
||||
}
|
||||
+20
@@ -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;
|
||||
}
|
||||
}
|
||||
+20
@@ -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;
|
||||
}
|
||||
}
|
||||
+20
@@ -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;
|
||||
}
|
||||
}
|
||||
+35
@@ -0,0 +1,35 @@
|
||||
using AssetRipper.Conversions.FastPng.Helpers;
|
||||
using AssetRipper.Conversions.FastPng.Intrinsics.Implemented;
|
||||
|
||||
namespace AssetRipper.Conversions.FastPng.GlobalFunctions;
|
||||
|
||||
[MangledName("??$_Allocate_manually_vector_aligned@U_Default_allocate_traits@std@@@std@@YAPEAX_K@Z")]
|
||||
[DemangledName("void * __cdecl std::_Allocate_manually_vector_aligned<struct std::_Default_allocate_traits>(unsigned __int64)")]
|
||||
internal static partial class Allocate_manually_vector_aligned
|
||||
{
|
||||
[return: NativeType("void *")]
|
||||
public unsafe static void* Invoke([MangledName("_Bytes")][NativeType("unsigned __int64")] long Bytes)
|
||||
{
|
||||
unchecked
|
||||
{
|
||||
long num = 39L + Bytes;
|
||||
if ((ulong)num <= (ulong)Bytes)
|
||||
{
|
||||
Throw_bad_array_new_length.Invoke();
|
||||
if (ExceptionInfo.Current != null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
throw null;
|
||||
}
|
||||
long num2 = (long)Allocate_q5w6zu.Invoke(num);
|
||||
if (num2 == 0L)
|
||||
{
|
||||
llvm_trap.Invoke();
|
||||
}
|
||||
void* ptr = (void*)((num2 + 39L) & -32L);
|
||||
*(long*)((byte*)ptr + -8) = num2;
|
||||
return ptr;
|
||||
}
|
||||
}
|
||||
}
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
using AssetRipper.Conversions.FastPng.Helpers;
|
||||
using AssetRipper.Conversions.FastPng.Intrinsics.Implemented;
|
||||
|
||||
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_q5w6zu
|
||||
{
|
||||
[return: NativeType("void *")]
|
||||
public unsafe static void* Invoke([MangledName("_Bytes")][NativeType("unsigned __int64")] long Bytes)
|
||||
{
|
||||
return New.Invoke(Bytes);
|
||||
}
|
||||
}
|
||||
+19
@@ -0,0 +1,19 @@
|
||||
using AssetRipper.Conversions.FastPng.Helpers;
|
||||
|
||||
namespace AssetRipper.Conversions.FastPng.GlobalFunctions;
|
||||
|
||||
[MangledName("?_Buy_nonzero@?$vector@IV?$allocator@I@std@@@std@@AEAAX_K@Z")]
|
||||
[DemangledName("private: void __cdecl std::vector<unsigned int, class std::allocator<unsigned int>>::_Buy_nonzero(unsigned __int64)")]
|
||||
internal static partial class Buy_nonzero
|
||||
{
|
||||
[return: NativeType("void")]
|
||||
public unsafe static void Invoke(void* @this, [MangledName("_Newcapacity")][NativeType("unsigned __int64")] long Newcapacity)
|
||||
{
|
||||
if (unchecked((ulong)Newcapacity > (ulong)max_size_2ddmdn.Invoke(@this)))
|
||||
{
|
||||
Xlength_255g3z.Invoke();
|
||||
throw null;
|
||||
}
|
||||
Buy_raw.Invoke(@this, Newcapacity);
|
||||
}
|
||||
}
|
||||
+35
@@ -0,0 +1,35 @@
|
||||
using AssetRipper.Conversions.FastPng.Helpers;
|
||||
using AssetRipper.Conversions.FastPng.Structures;
|
||||
|
||||
namespace AssetRipper.Conversions.FastPng.GlobalFunctions;
|
||||
|
||||
[MangledName("?_Buy_raw@?$vector@IV?$allocator@I@std@@@std@@AEAAX_K@Z")]
|
||||
[DemangledName("private: void __cdecl std::vector<unsigned int, class std::allocator<unsigned int>>::_Buy_raw(unsigned __int64)")]
|
||||
internal static partial class Buy_raw
|
||||
{
|
||||
private partial struct LocalVariables
|
||||
{
|
||||
public long field_0;
|
||||
}
|
||||
|
||||
[return: NativeType("void")]
|
||||
public unsafe static void Invoke(void* @this, [MangledName("_Newcapacity")][NativeType("unsigned __int64")] long Newcapacity)
|
||||
{
|
||||
StackFrame startFrame = StackFrameList.Current.New<LocalVariables>();
|
||||
LocalVariables* localsPointer = startFrame.GetLocalsPointer<LocalVariables>();
|
||||
localsPointer->field_0 = Newcapacity;
|
||||
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;
|
||||
void* ptr = Allocate_at_least_helper_cyykju.Invoke(Getal_jb66tx.Invoke(@this), &localsPointer->field_0);
|
||||
if (ExceptionInfo.Current == null)
|
||||
{
|
||||
*(byte**)myend = (byte*)(*(void**)mylast = (*(void**)myfirst = ptr)) + (nint)localsPointer->field_0 * 4;
|
||||
StackFrameList.Current.Clear(startFrame);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
+29
@@ -0,0 +1,29 @@
|
||||
using AssetRipper.Conversions.FastPng.Helpers;
|
||||
|
||||
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_2ntm6t
|
||||
{
|
||||
[return: NativeType("unsigned __int64")]
|
||||
public unsafe static long Invoke(void* @this, [MangledName("_Newsize")][NativeType("unsigned __int64")] long Newsize)
|
||||
{
|
||||
long num = capacity_e227dw.Invoke(@this);
|
||||
long num2 = max_size_t88hhi.Invoke(@this);
|
||||
unchecked
|
||||
{
|
||||
if ((ulong)num > (ulong)(num2 - (long)((ulong)num / 2uL)))
|
||||
{
|
||||
return num2;
|
||||
}
|
||||
long num3 = num + (long)((ulong)num / 2uL);
|
||||
if ((ulong)num3 < (ulong)Newsize)
|
||||
{
|
||||
return Newsize;
|
||||
}
|
||||
return num3;
|
||||
}
|
||||
}
|
||||
}
|
||||
+29
@@ -0,0 +1,29 @@
|
||||
using AssetRipper.Conversions.FastPng.Helpers;
|
||||
|
||||
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_xjnsmq
|
||||
{
|
||||
[return: NativeType("unsigned __int64")]
|
||||
public unsafe static long Invoke(void* @this, [MangledName("_Newsize")][NativeType("unsigned __int64")] long Newsize)
|
||||
{
|
||||
long num = capacity_zpcf72.Invoke(@this);
|
||||
long num2 = max_size_zqnixi.Invoke(@this);
|
||||
unchecked
|
||||
{
|
||||
if ((ulong)num > (ulong)(num2 - (long)((ulong)num / 2uL)))
|
||||
{
|
||||
return num2;
|
||||
}
|
||||
long num3 = num + (long)((ulong)num / 2uL);
|
||||
if ((ulong)num3 < (ulong)Newsize)
|
||||
{
|
||||
return Newsize;
|
||||
}
|
||||
return num3;
|
||||
}
|
||||
}
|
||||
}
|
||||
+33
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
+33
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
using AssetRipper.Conversions.FastPng.Helpers;
|
||||
using AssetRipper.Conversions.FastPng.Structures;
|
||||
|
||||
namespace AssetRipper.Conversions.FastPng.GlobalFunctions;
|
||||
|
||||
[MangledName("??$?0$$V@?$_Compressed_pair@V?$allocator@E@std@@V?$_Vector_val@U?$_Simple_types@E@std@@@2@$00@std@@QEAA@U_Zero_then_variadic_args_t@1@@Z")]
|
||||
[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, [MangledName(".coerce")][NativeType("struct std::_Zero_then_variadic_args_t")] sbyte 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_icp8g8*)@this)->Myval2);
|
||||
return @this;
|
||||
}
|
||||
}
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
using AssetRipper.Conversions.FastPng.Helpers;
|
||||
using AssetRipper.Conversions.FastPng.Structures;
|
||||
|
||||
namespace AssetRipper.Conversions.FastPng.GlobalFunctions;
|
||||
|
||||
[MangledName("??$?0$$V@?$_Compressed_pair@V?$allocator@_K@std@@V?$_Vector_val@U?$_Simple_types@_K@std@@@2@$00@std@@QEAA@U_Zero_then_variadic_args_t@1@@Z")]
|
||||
[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, [MangledName(".coerce")][NativeType("struct std::_Zero_then_variadic_args_t")] sbyte 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_fp3k7r*)@this)->Myval2);
|
||||
return @this;
|
||||
}
|
||||
}
|
||||
+19
@@ -0,0 +1,19 @@
|
||||
using AssetRipper.Conversions.FastPng.Helpers;
|
||||
using AssetRipper.Conversions.FastPng.Structures;
|
||||
|
||||
namespace AssetRipper.Conversions.FastPng.GlobalFunctions;
|
||||
|
||||
[MangledName("??$?0AEBV?$allocator@I@std@@$$V@?$_Compressed_pair@V?$allocator@I@std@@V?$_Vector_val@U?$_Simple_types@I@std@@@2@$00@std@@QEAA@U_One_then_variadic_args_t@1@AEBV?$allocator@I@1@@Z")]
|
||||
[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, [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_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;
|
||||
}
|
||||
}
|
||||
+58
@@ -0,0 +1,58 @@
|
||||
using AssetRipper.Conversions.FastPng.Helpers;
|
||||
using AssetRipper.Conversions.FastPng.Structures;
|
||||
|
||||
namespace AssetRipper.Conversions.FastPng.GlobalFunctions;
|
||||
|
||||
[MangledName("??$_Construct_n@$$V@?$vector@IV?$allocator@I@std@@@std@@AEAAX_K@Z")]
|
||||
[DemangledName("private: void __cdecl std::vector<unsigned int, class std::allocator<unsigned int>>::_Construct_n<>(unsigned __int64)")]
|
||||
internal static partial class Construct_n
|
||||
{
|
||||
private partial struct LocalVariables
|
||||
{
|
||||
public std_Fake_allocator field_0;
|
||||
|
||||
public std_Fake_proxy_ptr_impl field_1;
|
||||
|
||||
public std_Tidy_guard field_2;
|
||||
}
|
||||
|
||||
[return: NativeType("void")]
|
||||
public unsafe static void Invoke(void* @this, [MangledName("_Count")][NativeType("unsigned __int64")] long Count)
|
||||
{
|
||||
StackFrame startFrame = StackFrameList.Current.New<LocalVariables>();
|
||||
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
|
||||
{
|
||||
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(@this, Count);
|
||||
if (ExceptionInfo.Current != null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
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 = null;
|
||||
Tidy_guard_class_std_vector_unsigned_int_class_std_allocator_unsigned_int_Destructor.Invoke(&localsPointer->field_2);
|
||||
ExceptionInfo.Current = current;
|
||||
return;
|
||||
}
|
||||
((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(&localsPointer->field_1);
|
||||
StackFrameList.Current.Clear(startFrame);
|
||||
}
|
||||
}
|
||||
}
|
||||
+24
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
+19
@@ -0,0 +1,19 @@
|
||||
using AssetRipper.Conversions.FastPng.Helpers;
|
||||
using AssetRipper.Conversions.FastPng.Intrinsics.Implemented;
|
||||
|
||||
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_gix4qw
|
||||
{
|
||||
[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 = 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;
|
||||
}
|
||||
}
|
||||
+19
@@ -0,0 +1,19 @@
|
||||
using AssetRipper.Conversions.FastPng.Helpers;
|
||||
using AssetRipper.Conversions.FastPng.Intrinsics.Implemented;
|
||||
|
||||
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_v5pv3y
|
||||
{
|
||||
[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 = 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;
|
||||
}
|
||||
}
|
||||
+24
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
+29
@@ -0,0 +1,29 @@
|
||||
using AssetRipper.Conversions.FastPng.Helpers;
|
||||
using AssetRipper.Conversions.FastPng.Intrinsics.Implemented;
|
||||
|
||||
namespace AssetRipper.Conversions.FastPng.GlobalFunctions;
|
||||
|
||||
[MangledName("??$_Deallocate@$0BA@@std@@YAXPEAX_K@Z")]
|
||||
[DemangledName("void __cdecl std::_Deallocate<16>(void *, unsigned __int64)")]
|
||||
internal static partial class Deallocate
|
||||
{
|
||||
[return: NativeType("void")]
|
||||
public unsafe static void Invoke([MangledName("_Ptr")][NativeType("void *")] void* Ptr, [MangledName("_Bytes")][NativeType("unsigned __int64")] long Bytes)
|
||||
{
|
||||
long num = 0L;
|
||||
void* ptr = null;
|
||||
num = Bytes;
|
||||
ptr = Ptr;
|
||||
if (unchecked((ulong)num) >= 4096uL)
|
||||
{
|
||||
Adjust_manually_vector_aligned.Invoke(&ptr, &num);
|
||||
if (ExceptionInfo.Current != null)
|
||||
{
|
||||
ExceptionInfo.Current = null;
|
||||
std_terminate.Invoke();
|
||||
throw null;
|
||||
}
|
||||
}
|
||||
Delete.Invoke(ptr, num);
|
||||
}
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
using AssetRipper.Conversions.FastPng.Helpers;
|
||||
|
||||
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_6evibt
|
||||
{
|
||||
[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)
|
||||
{
|
||||
}
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
using AssetRipper.Conversions.FastPng.Helpers;
|
||||
|
||||
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_eprs33
|
||||
{
|
||||
[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)
|
||||
{
|
||||
}
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
using AssetRipper.Conversions.FastPng.Helpers;
|
||||
|
||||
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_vpmzer
|
||||
{
|
||||
[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)
|
||||
{
|
||||
}
|
||||
}
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
using AssetRipper.Conversions.FastPng.Helpers;
|
||||
|
||||
namespace AssetRipper.Conversions.FastPng.GlobalFunctions;
|
||||
|
||||
[MangledName("??0_Fake_proxy_ptr_impl@std@@QEAA@AEBU_Fake_allocator@1@AEBU_Container_base0@1@@Z")]
|
||||
[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, [NativeType("struct std::_Fake_allocator const &")] void* parameter_1, [NativeType("struct std::_Container_base0 const &")] void* parameter_2)
|
||||
{
|
||||
return @this;
|
||||
}
|
||||
}
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
using AssetRipper.Conversions.FastPng.Helpers;
|
||||
|
||||
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_2rs8wq
|
||||
{
|
||||
[return: NativeType("class std::allocator<unsigned char> &")]
|
||||
public unsafe static void* Invoke(void* @this)
|
||||
{
|
||||
return @this;
|
||||
}
|
||||
}
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
using AssetRipper.Conversions.FastPng.Helpers;
|
||||
|
||||
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_6qcwh9
|
||||
{
|
||||
[return: NativeType("class std::allocator<unsigned __int64> const &")]
|
||||
public unsafe static void* Invoke(void* @this)
|
||||
{
|
||||
return @this;
|
||||
}
|
||||
}
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
using AssetRipper.Conversions.FastPng.Helpers;
|
||||
|
||||
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_cund8f
|
||||
{
|
||||
[return: NativeType("class std::allocator<unsigned int> &")]
|
||||
public unsafe static void* Invoke(void* @this)
|
||||
{
|
||||
return @this;
|
||||
}
|
||||
}
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
using AssetRipper.Conversions.FastPng.Helpers;
|
||||
|
||||
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_djzrvk
|
||||
{
|
||||
[return: NativeType("class std::allocator<unsigned int> const &")]
|
||||
public unsafe static void* Invoke(void* @this)
|
||||
{
|
||||
return @this;
|
||||
}
|
||||
}
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
using AssetRipper.Conversions.FastPng.Helpers;
|
||||
|
||||
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_he3p6z
|
||||
{
|
||||
[return: NativeType("class std::allocator<unsigned __int64> &")]
|
||||
public unsafe static void* Invoke(void* @this)
|
||||
{
|
||||
return @this;
|
||||
}
|
||||
}
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
using AssetRipper.Conversions.FastPng.Helpers;
|
||||
|
||||
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_nacpdc
|
||||
{
|
||||
[return: NativeType("class std::allocator<unsigned char> const &")]
|
||||
public unsafe static void* Invoke(void* @this)
|
||||
{
|
||||
return @this;
|
||||
}
|
||||
}
|
||||
+16
@@ -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;
|
||||
}
|
||||
}
|
||||
+16
@@ -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;
|
||||
}
|
||||
}
|
||||
+16
@@ -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;
|
||||
}
|
||||
}
|
||||
+27
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
using AssetRipper.Conversions.FastPng.Helpers;
|
||||
|
||||
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_d9tw5e
|
||||
{
|
||||
[return: NativeType("unsigned __int64")]
|
||||
public static long Invoke([MangledName("_Count")][NativeType("unsigned __int64")] long Count)
|
||||
{
|
||||
return unchecked(Count * 1L);
|
||||
}
|
||||
}
|
||||
+27
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
using AssetRipper.Conversions.FastPng.Helpers;
|
||||
|
||||
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_b5ivdj
|
||||
{
|
||||
[return: NativeType("decltype(auto)")]
|
||||
public unsafe static void* Invoke([MangledName("_It")][NativeType("unsigned __int64 *const &")] void* It)
|
||||
{
|
||||
return *unchecked((void**)It);
|
||||
}
|
||||
}
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
using AssetRipper.Conversions.FastPng.Helpers;
|
||||
|
||||
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_viw76v
|
||||
{
|
||||
[return: NativeType("decltype(auto)")]
|
||||
public unsafe static void* Invoke([MangledName("_It")][NativeType("unsigned char *const &")] void* It)
|
||||
{
|
||||
return *unchecked((void**)It);
|
||||
}
|
||||
}
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
using AssetRipper.Conversions.FastPng.Helpers;
|
||||
using AssetRipper.Conversions.FastPng.Structures;
|
||||
|
||||
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_ie7hg9
|
||||
{
|
||||
[return: NativeType("class std::allocator<unsigned __int64> &")]
|
||||
public unsafe static void* Invoke(void* @this)
|
||||
{
|
||||
return Get_first_he3p6z.Invoke(&unchecked((std_vector_ucmdxb*)@this)->Mypair);
|
||||
}
|
||||
}
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
using AssetRipper.Conversions.FastPng.Helpers;
|
||||
using AssetRipper.Conversions.FastPng.Structures;
|
||||
|
||||
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_jb66tx
|
||||
{
|
||||
[return: NativeType("class std::allocator<unsigned int> &")]
|
||||
public unsafe static void* Invoke(void* @this)
|
||||
{
|
||||
return Get_first_cund8f.Invoke(&unchecked((std_vector_jsyy6a*)@this)->Mypair);
|
||||
}
|
||||
}
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
using AssetRipper.Conversions.FastPng.Helpers;
|
||||
using AssetRipper.Conversions.FastPng.Structures;
|
||||
|
||||
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_kwpsjz
|
||||
{
|
||||
[return: NativeType("class std::allocator<unsigned int> const &")]
|
||||
public unsafe static void* Invoke(void* @this)
|
||||
{
|
||||
return Get_first_djzrvk.Invoke(&unchecked((std_vector_jsyy6a*)@this)->Mypair);
|
||||
}
|
||||
}
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
using AssetRipper.Conversions.FastPng.Helpers;
|
||||
using AssetRipper.Conversions.FastPng.Structures;
|
||||
|
||||
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_vgvjy8
|
||||
{
|
||||
[return: NativeType("class std::allocator<unsigned __int64> const &")]
|
||||
public unsafe static void* Invoke(void* @this)
|
||||
{
|
||||
return Get_first_6qcwh9.Invoke(&unchecked((std_vector_ucmdxb*)@this)->Mypair);
|
||||
}
|
||||
}
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
using AssetRipper.Conversions.FastPng.Helpers;
|
||||
using AssetRipper.Conversions.FastPng.Structures;
|
||||
|
||||
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_vpqbcr
|
||||
{
|
||||
[return: NativeType("class std::allocator<unsigned char> &")]
|
||||
public unsafe static void* Invoke(void* @this)
|
||||
{
|
||||
return Get_first_2rs8wq.Invoke(&unchecked((std_vector_4tqn2f*)@this)->Mypair);
|
||||
}
|
||||
}
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
using AssetRipper.Conversions.FastPng.Helpers;
|
||||
using AssetRipper.Conversions.FastPng.Structures;
|
||||
|
||||
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_xcf3vf
|
||||
{
|
||||
[return: NativeType("class std::allocator<unsigned char> const &")]
|
||||
public unsafe static void* Invoke(void* @this)
|
||||
{
|
||||
return Get_first_nacpdc.Invoke(&unchecked((std_vector_4tqn2f*)@this)->Mypair);
|
||||
}
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
using AssetRipper.Conversions.FastPng.Helpers;
|
||||
|
||||
namespace AssetRipper.Conversions.FastPng.GlobalFunctions;
|
||||
|
||||
[MangledName("??$_Max_limit@_J@std@@YA_JXZ")]
|
||||
[DemangledName("__int64 __cdecl std::_Max_limit<__int64>(void)")]
|
||||
internal static partial class Max_limit
|
||||
{
|
||||
[return: NativeType("__int64")]
|
||||
public static long Invoke()
|
||||
{
|
||||
return long.MaxValue;
|
||||
}
|
||||
}
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
using AssetRipper.Conversions.FastPng.Helpers;
|
||||
|
||||
namespace AssetRipper.Conversions.FastPng.GlobalFunctions;
|
||||
|
||||
[MangledName("?_Orphan_all@_Container_base0@std@@QEAAXXZ")]
|
||||
[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)
|
||||
{
|
||||
}
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
using AssetRipper.Conversions.FastPng.Helpers;
|
||||
|
||||
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_8vzm8x
|
||||
{
|
||||
[return: NativeType("void")]
|
||||
public unsafe static void Invoke(void* @this, [NativeType("unsigned __int64 *")] void* parameter_1, [NativeType("unsigned __int64 *")] void* parameter_2)
|
||||
{
|
||||
}
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
using AssetRipper.Conversions.FastPng.Helpers;
|
||||
|
||||
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_xjvz63
|
||||
{
|
||||
[return: NativeType("void")]
|
||||
public unsafe static void Invoke(void* @this, [NativeType("unsigned char *")] void* parameter_1, [NativeType("unsigned char *")] void* parameter_2)
|
||||
{
|
||||
}
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
using AssetRipper.Conversions.FastPng.Helpers;
|
||||
|
||||
namespace AssetRipper.Conversions.FastPng.GlobalFunctions;
|
||||
|
||||
[MangledName("?READ_RGB_PIXEL@fpng@@YAIPEBX@Z")]
|
||||
[DemangledName("unsigned int __cdecl fpng::READ_RGB_PIXEL(void const *)")]
|
||||
internal static partial class READ_RGB_PIXEL
|
||||
{
|
||||
[return: NativeType("unsigned int")]
|
||||
public unsafe static int Invoke([NativeType("void const *")] void* p)
|
||||
{
|
||||
return *unchecked((int*)p) & 0xFFFFFF;
|
||||
}
|
||||
}
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
using AssetRipper.Conversions.FastPng.Helpers;
|
||||
using AssetRipper.Conversions.FastPng.Structures;
|
||||
|
||||
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_fq2gtv
|
||||
{
|
||||
public unsafe static void Invoke(void* @this)
|
||||
{
|
||||
unchecked
|
||||
{
|
||||
if (((std_vector_unsigned_long_long_Reallocation_guard*)@this)->field_1 != null)
|
||||
{
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
using AssetRipper.Conversions.FastPng.Helpers;
|
||||
using AssetRipper.Conversions.FastPng.Structures;
|
||||
|
||||
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_r9uyr4
|
||||
{
|
||||
public unsafe static void Invoke(void* @this)
|
||||
{
|
||||
unchecked
|
||||
{
|
||||
if (((std_vector_unsigned_char_Reallocation_guard*)@this)->field_1 != null)
|
||||
{
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
using AssetRipper.Conversions.FastPng.Helpers;
|
||||
|
||||
namespace AssetRipper.Conversions.FastPng.GlobalFunctions;
|
||||
|
||||
[MangledName("?_Release@_Fake_proxy_ptr_impl@std@@QEAAXXZ")]
|
||||
[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)
|
||||
{
|
||||
}
|
||||
}
|
||||
+51
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
+71
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
+71
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
+51
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
+30
@@ -0,0 +1,30 @@
|
||||
using AssetRipper.Conversions.FastPng.GlobalVariables;
|
||||
using AssetRipper.Conversions.FastPng.Helpers;
|
||||
using AssetRipper.Conversions.FastPng.Intrinsics.Implemented;
|
||||
using AssetRipper.Conversions.FastPng.Structures;
|
||||
|
||||
namespace AssetRipper.Conversions.FastPng.GlobalFunctions;
|
||||
|
||||
[MangledName("?_Throw_bad_array_new_length@std@@YAXXZ")]
|
||||
[DemangledName("void __cdecl std::_Throw_bad_array_new_length(void)")]
|
||||
internal static partial class Throw_bad_array_new_length
|
||||
{
|
||||
private partial struct LocalVariables
|
||||
{
|
||||
public std_bad_array_new_length field_0;
|
||||
}
|
||||
|
||||
[return: NativeType("void")]
|
||||
public unsafe static void Invoke()
|
||||
{
|
||||
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;
|
||||
}
|
||||
throw null;
|
||||
}
|
||||
}
|
||||
+33
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
using AssetRipper.Conversions.FastPng.Helpers;
|
||||
using AssetRipper.Conversions.FastPng.Structures;
|
||||
|
||||
namespace AssetRipper.Conversions.FastPng.GlobalFunctions;
|
||||
|
||||
[MangledName("??1?$_Tidy_guard@V?$vector@IV?$allocator@I@std@@@std@@@std@@QEAA@XZ")]
|
||||
[DemangledName("public: __cdecl std::_Tidy_guard<class std::vector<unsigned int, class std::allocator<unsigned int>>>::~_Tidy_guard<class std::vector<unsigned int, class std::allocator<unsigned int>>>(void)")]
|
||||
internal static partial class Tidy_guard_class_std_vector_unsigned_int_class_std_allocator_unsigned_int_Destructor
|
||||
{
|
||||
public unsafe static void Invoke(void* @this)
|
||||
{
|
||||
unchecked
|
||||
{
|
||||
if (((std_Tidy_guard*)@this)->Target != null)
|
||||
{
|
||||
Tidy_t4s52y.Invoke(((std_Tidy_guard*)@this)->Target);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
+33
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
+33
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
using AssetRipper.Conversions.FastPng.Helpers;
|
||||
|
||||
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_e887gk
|
||||
{
|
||||
[return: NativeType("auto")]
|
||||
public unsafe static void* Invoke([MangledName("_Val")][NativeType("unsigned char *const &")] void* Val)
|
||||
{
|
||||
return *unchecked((void**)Val);
|
||||
}
|
||||
}
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
using AssetRipper.Conversions.FastPng.Helpers;
|
||||
|
||||
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_uy47kg
|
||||
{
|
||||
[return: NativeType("auto")]
|
||||
public unsafe static void* Invoke([MangledName("_Val")][NativeType("unsigned __int64 *const &")] void* Val)
|
||||
{
|
||||
return *unchecked((void**)Val);
|
||||
}
|
||||
}
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
using AssetRipper.Conversions.FastPng.Helpers;
|
||||
|
||||
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_vfzm44
|
||||
{
|
||||
[return: NativeType("auto")]
|
||||
public unsafe static void* Invoke([MangledName("_Val")][NativeType("unsigned int *const &")] void* Val)
|
||||
{
|
||||
return *unchecked((void**)Val);
|
||||
}
|
||||
}
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
using AssetRipper.Conversions.FastPng.Helpers;
|
||||
|
||||
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_2hrtxn
|
||||
{
|
||||
[return: NativeType("unsigned __int64 *")]
|
||||
public unsafe static void* Invoke([MangledName("_Ptr")][NativeType("unsigned __int64 *")] void* Ptr)
|
||||
{
|
||||
return Ptr;
|
||||
}
|
||||
}
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
using AssetRipper.Conversions.FastPng.Helpers;
|
||||
|
||||
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_78x93g
|
||||
{
|
||||
[return: NativeType("unsigned int *")]
|
||||
public unsafe static void* Invoke([MangledName("_Ptr")][NativeType("unsigned int *")] void* Ptr)
|
||||
{
|
||||
return Ptr;
|
||||
}
|
||||
}
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
using AssetRipper.Conversions.FastPng.Helpers;
|
||||
|
||||
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_gt4y67
|
||||
{
|
||||
[return: NativeType("unsigned char *")]
|
||||
public unsafe static void* Invoke([MangledName("_Ptr")][NativeType("unsigned char *")] void* Ptr)
|
||||
{
|
||||
return Ptr;
|
||||
}
|
||||
}
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
using AssetRipper.Conversions.FastPng.Helpers;
|
||||
|
||||
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_q2cruh
|
||||
{
|
||||
[return: NativeType("unsigned __int64 *")]
|
||||
public unsafe static void* Invoke([MangledName("_Ptr")][NativeType("unsigned __int64 *")] void* Ptr)
|
||||
{
|
||||
return Ptr;
|
||||
}
|
||||
}
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
using AssetRipper.Conversions.FastPng.Helpers;
|
||||
|
||||
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_up4piv
|
||||
{
|
||||
[return: NativeType("unsigned int *")]
|
||||
public unsafe static void* Invoke([MangledName("_Ptr")][NativeType("unsigned int *")] void* Ptr)
|
||||
{
|
||||
return Ptr;
|
||||
}
|
||||
}
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
using AssetRipper.Conversions.FastPng.Helpers;
|
||||
|
||||
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_zvjymc
|
||||
{
|
||||
[return: NativeType("unsigned char *")]
|
||||
public unsafe static void* Invoke([MangledName("_Ptr")][NativeType("unsigned char *")] void* Ptr)
|
||||
{
|
||||
return Ptr;
|
||||
}
|
||||
}
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
using AssetRipper.Conversions.FastPng.Helpers;
|
||||
|
||||
namespace AssetRipper.Conversions.FastPng.GlobalFunctions;
|
||||
|
||||
[MangledName("??$_Uninitialized_move@PEA_KV?$allocator@_K@std@@@std@@YAPEA_KQEA_K0PEA_KAEAV?$allocator@_K@0@@Z")]
|
||||
[DemangledName("unsigned __int64 * __cdecl std::_Uninitialized_move<unsigned __int64 *, class std::allocator<unsigned __int64>>(unsigned __int64 *const, unsigned __int64 *const, unsigned __int64 *, class std::allocator<unsigned __int64> &)")]
|
||||
[CleanName("Uninitialized_move")]
|
||||
internal static partial class Uninitialized_move_5rztdf
|
||||
{
|
||||
[return: NativeType("unsigned __int64 *")]
|
||||
public unsafe static void* Invoke([MangledName("_First")][NativeType("unsigned __int64 *const")] void* First, [MangledName("_Last")][NativeType("unsigned __int64 *const")] void* Last, [MangledName("_Dest")][NativeType("unsigned __int64 *")] void* Dest, [MangledName("_Al")][NativeType("class std::allocator<unsigned __int64> &")] void* Al)
|
||||
{
|
||||
void* ptr = Last;
|
||||
void* ptr2 = First;
|
||||
void* ptr3 = Get_unwrapped_b5ivdj.Invoke(&ptr2);
|
||||
void* ptr4 = Get_unwrapped_b5ivdj.Invoke(&ptr);
|
||||
Copy_memmove_cci3ap.Invoke(ptr3, ptr4, Unfancy_2hrtxn.Invoke(Dest));
|
||||
return unchecked((byte*)Dest + (nint)(((long)ptr4 - (long)ptr3) / 8L) * 8);
|
||||
}
|
||||
}
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
using AssetRipper.Conversions.FastPng.Helpers;
|
||||
|
||||
namespace AssetRipper.Conversions.FastPng.GlobalFunctions;
|
||||
|
||||
[MangledName("??$_Uninitialized_move@PEAEV?$allocator@E@std@@@std@@YAPEAEQEAE0PEAEAEAV?$allocator@E@0@@Z")]
|
||||
[DemangledName("unsigned char * __cdecl std::_Uninitialized_move<unsigned char *, class std::allocator<unsigned char>>(unsigned char *const, unsigned char *const, unsigned char *, class std::allocator<unsigned char> &)")]
|
||||
[CleanName("Uninitialized_move")]
|
||||
internal static partial class Uninitialized_move_uueuvn
|
||||
{
|
||||
[return: NativeType("unsigned char *")]
|
||||
public unsafe static void* Invoke([MangledName("_First")][NativeType("unsigned char *const")] void* First, [MangledName("_Last")][NativeType("unsigned char *const")] void* Last, [MangledName("_Dest")][NativeType("unsigned char *")] void* Dest, [MangledName("_Al")][NativeType("class std::allocator<unsigned char> &")] void* Al)
|
||||
{
|
||||
void* ptr = Last;
|
||||
void* ptr2 = First;
|
||||
void* ptr3 = Get_unwrapped_viw76v.Invoke(&ptr2);
|
||||
void* ptr4 = Get_unwrapped_viw76v.Invoke(&ptr);
|
||||
Copy_memmove_y9se66.Invoke(ptr3, ptr4, Unfancy_zvjymc.Invoke(Dest));
|
||||
return unchecked((byte*)Dest + ((long)ptr4 - (long)ptr3));
|
||||
}
|
||||
}
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
using AssetRipper.Conversions.FastPng.Helpers;
|
||||
|
||||
namespace AssetRipper.Conversions.FastPng.GlobalFunctions;
|
||||
|
||||
[MangledName("??$_Uninitialized_value_construct_n@V?$allocator@_K@std@@@std@@YAPEA_KPEA_K_KAEAV?$allocator@_K@0@@Z")]
|
||||
[DemangledName("unsigned __int64 * __cdecl std::_Uninitialized_value_construct_n<class std::allocator<unsigned __int64>>(unsigned __int64 *, unsigned __int64, class std::allocator<unsigned __int64> &)")]
|
||||
[CleanName("Uninitialized_value_construct_n")]
|
||||
internal static partial class Uninitialized_value_construct_n_e2x86x
|
||||
{
|
||||
[return: NativeType("unsigned __int64 *")]
|
||||
public unsafe static void* Invoke([MangledName("_First")][NativeType("unsigned __int64 *")] void* First, [MangledName("_Count")][NativeType("unsigned __int64")] long Count, [MangledName("_Al")][NativeType("class std::allocator<unsigned __int64> &")] void* Al)
|
||||
{
|
||||
void* ptr = Unfancy_2hrtxn.Invoke(First);
|
||||
unchecked
|
||||
{
|
||||
Zero_range_frsqbi.Invoke(ptr, (byte*)ptr + (nint)Count * 8);
|
||||
return (byte*)First + (nint)Count * 8;
|
||||
}
|
||||
}
|
||||
}
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
using AssetRipper.Conversions.FastPng.Helpers;
|
||||
|
||||
namespace AssetRipper.Conversions.FastPng.GlobalFunctions;
|
||||
|
||||
[MangledName("??$_Uninitialized_value_construct_n@V?$allocator@I@std@@@std@@YAPEAIPEAI_KAEAV?$allocator@I@0@@Z")]
|
||||
[DemangledName("unsigned int * __cdecl std::_Uninitialized_value_construct_n<class std::allocator<unsigned int>>(unsigned int *, unsigned __int64, class std::allocator<unsigned int> &)")]
|
||||
[CleanName("Uninitialized_value_construct_n")]
|
||||
internal static partial class Uninitialized_value_construct_n_qqxnj2
|
||||
{
|
||||
[return: NativeType("unsigned int *")]
|
||||
public unsafe static void* Invoke([MangledName("_First")][NativeType("unsigned int *")] void* First, [MangledName("_Count")][NativeType("unsigned __int64")] long Count, [MangledName("_Al")][NativeType("class std::allocator<unsigned int> &")] void* Al)
|
||||
{
|
||||
void* ptr = Unfancy_up4piv.Invoke(First);
|
||||
unchecked
|
||||
{
|
||||
Zero_range_mqchde.Invoke(ptr, (byte*)ptr + (nint)Count * 4);
|
||||
return (byte*)First + (nint)Count * 4;
|
||||
}
|
||||
}
|
||||
}
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
using AssetRipper.Conversions.FastPng.Helpers;
|
||||
|
||||
namespace AssetRipper.Conversions.FastPng.GlobalFunctions;
|
||||
|
||||
[MangledName("??$_Uninitialized_value_construct_n@V?$allocator@E@std@@@std@@YAPEAEPEAE_KAEAV?$allocator@E@0@@Z")]
|
||||
[DemangledName("unsigned char * __cdecl std::_Uninitialized_value_construct_n<class std::allocator<unsigned char>>(unsigned char *, unsigned __int64, class std::allocator<unsigned char> &)")]
|
||||
[CleanName("Uninitialized_value_construct_n")]
|
||||
internal static partial class Uninitialized_value_construct_n_sbfpus
|
||||
{
|
||||
[return: NativeType("unsigned char *")]
|
||||
public unsafe static void* Invoke([MangledName("_First")][NativeType("unsigned char *")] void* First, [MangledName("_Count")][NativeType("unsigned __int64")] long Count, [MangledName("_Al")][NativeType("class std::allocator<unsigned char> &")] void* Al)
|
||||
{
|
||||
void* ptr = Unfancy_zvjymc.Invoke(First);
|
||||
unchecked
|
||||
{
|
||||
Zero_range_t5bpt7.Invoke(ptr, (byte*)ptr + Count);
|
||||
return (byte*)First + Count;
|
||||
}
|
||||
}
|
||||
}
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
using AssetRipper.Conversions.FastPng.Helpers;
|
||||
using AssetRipper.Conversions.FastPng.Structures;
|
||||
|
||||
namespace AssetRipper.Conversions.FastPng.GlobalFunctions;
|
||||
|
||||
[MangledName("??0?$_Vector_val@U?$_Simple_types@E@std@@@std@@QEAA@XZ")]
|
||||
[DemangledName("public: __cdecl std::_Vector_val<struct std::_Simple_types<unsigned char>>::_Vector_val<struct std::_Simple_types<unsigned char>>(void)")]
|
||||
internal static partial class Vector_val_struct_std_Simple_types_unsigned_char_Constructor
|
||||
{
|
||||
public unsafe static void* Invoke(void* @this)
|
||||
{
|
||||
unchecked
|
||||
{
|
||||
((std_Vector_val_ghsspe*)@this)->Myfirst = null;
|
||||
((std_Vector_val_ghsspe*)@this)->Mylast = null;
|
||||
((std_Vector_val_ghsspe*)@this)->Myend = null;
|
||||
return @this;
|
||||
}
|
||||
}
|
||||
}
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
using AssetRipper.Conversions.FastPng.Helpers;
|
||||
using AssetRipper.Conversions.FastPng.Structures;
|
||||
|
||||
namespace AssetRipper.Conversions.FastPng.GlobalFunctions;
|
||||
|
||||
[MangledName("??0?$_Vector_val@U?$_Simple_types@_K@std@@@std@@QEAA@XZ")]
|
||||
[DemangledName("public: __cdecl std::_Vector_val<struct std::_Simple_types<unsigned __int64>>::_Vector_val<struct std::_Simple_types<unsigned __int64>>(void)")]
|
||||
internal static partial class Vector_val_struct_std_Simple_types_unsigned_int64_Constructor
|
||||
{
|
||||
public unsafe static void* Invoke(void* @this)
|
||||
{
|
||||
unchecked
|
||||
{
|
||||
((std_Vector_val_i7igbu*)@this)->Myfirst = null;
|
||||
((std_Vector_val_i7igbu*)@this)->Mylast = null;
|
||||
((std_Vector_val_i7igbu*)@this)->Myend = null;
|
||||
return @this;
|
||||
}
|
||||
}
|
||||
}
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
using AssetRipper.Conversions.FastPng.Helpers;
|
||||
using AssetRipper.Conversions.FastPng.Structures;
|
||||
|
||||
namespace AssetRipper.Conversions.FastPng.GlobalFunctions;
|
||||
|
||||
[MangledName("??0?$_Vector_val@U?$_Simple_types@I@std@@@std@@QEAA@XZ")]
|
||||
[DemangledName("public: __cdecl std::_Vector_val<struct std::_Simple_types<unsigned int>>::_Vector_val<struct std::_Simple_types<unsigned int>>(void)")]
|
||||
internal static partial class Vector_val_struct_std_Simple_types_unsigned_int_Constructor
|
||||
{
|
||||
public unsafe static void* Invoke(void* @this)
|
||||
{
|
||||
unchecked
|
||||
{
|
||||
((std_Vector_val_fju23j*)@this)->Myfirst = null;
|
||||
((std_Vector_val_fju23j*)@this)->Mylast = null;
|
||||
((std_Vector_val_fju23j*)@this)->Myend = null;
|
||||
return @this;
|
||||
}
|
||||
}
|
||||
}
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
using AssetRipper.Conversions.FastPng.GlobalVariables;
|
||||
using AssetRipper.Conversions.FastPng.Helpers;
|
||||
using AssetRipper.Conversions.FastPng.Intrinsics.Unimplemented;
|
||||
|
||||
namespace AssetRipper.Conversions.FastPng.GlobalFunctions;
|
||||
|
||||
[MangledName("?_Xlength@?$vector@IV?$allocator@I@std@@@std@@CAXXZ")]
|
||||
[DemangledName("private: static void __cdecl std::vector<unsigned int, class std::allocator<unsigned int>>::_Xlength(void)")]
|
||||
[CleanName("Xlength")]
|
||||
internal static partial class Xlength_255g3z
|
||||
{
|
||||
[return: NativeType("void")]
|
||||
public unsafe static void Invoke()
|
||||
{
|
||||
Xlength_error.Invoke(String_ss96c3.__pointer);
|
||||
throw null;
|
||||
}
|
||||
}
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
using AssetRipper.Conversions.FastPng.GlobalVariables;
|
||||
using AssetRipper.Conversions.FastPng.Helpers;
|
||||
using AssetRipper.Conversions.FastPng.Intrinsics.Unimplemented;
|
||||
|
||||
namespace AssetRipper.Conversions.FastPng.GlobalFunctions;
|
||||
|
||||
[MangledName("?_Xlength@?$vector@_KV?$allocator@_K@std@@@std@@CAXXZ")]
|
||||
[DemangledName("private: static void __cdecl std::vector<unsigned __int64, class std::allocator<unsigned __int64>>::_Xlength(void)")]
|
||||
[CleanName("Xlength")]
|
||||
internal static partial class Xlength_4tkvw9
|
||||
{
|
||||
[return: NativeType("void")]
|
||||
public unsafe static void Invoke()
|
||||
{
|
||||
Xlength_error.Invoke(String_ss96c3.__pointer);
|
||||
throw null;
|
||||
}
|
||||
}
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
using AssetRipper.Conversions.FastPng.GlobalVariables;
|
||||
using AssetRipper.Conversions.FastPng.Helpers;
|
||||
using AssetRipper.Conversions.FastPng.Intrinsics.Unimplemented;
|
||||
|
||||
namespace AssetRipper.Conversions.FastPng.GlobalFunctions;
|
||||
|
||||
[MangledName("?_Xlength@?$vector@EV?$allocator@E@std@@@std@@CAXXZ")]
|
||||
[DemangledName("private: static void __cdecl std::vector<unsigned char, class std::allocator<unsigned char>>::_Xlength(void)")]
|
||||
[CleanName("Xlength")]
|
||||
internal static partial class Xlength_anx5wc
|
||||
{
|
||||
[return: NativeType("void")]
|
||||
public unsafe static void Invoke()
|
||||
{
|
||||
Xlength_error.Invoke(String_ss96c3.__pointer);
|
||||
throw null;
|
||||
}
|
||||
}
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
using AssetRipper.Conversions.FastPng.Helpers;
|
||||
using AssetRipper.Conversions.FastPng.Intrinsics.Implemented;
|
||||
|
||||
namespace AssetRipper.Conversions.FastPng.GlobalFunctions;
|
||||
|
||||
[MangledName("??$_Zero_range@PEA_K@std@@YAPEA_KQEA_K0@Z")]
|
||||
[DemangledName("unsigned __int64 * __cdecl std::_Zero_range<unsigned __int64 *>(unsigned __int64 *const, unsigned __int64 *const)")]
|
||||
[CleanName("Zero_range")]
|
||||
internal static partial class Zero_range_frsqbi
|
||||
{
|
||||
[return: NativeType("unsigned __int64 *")]
|
||||
public unsafe static void* Invoke([MangledName("_First")][NativeType("unsigned __int64 *const")] void* First, [MangledName("_Last")][NativeType("unsigned __int64 *const")] void* Last)
|
||||
{
|
||||
void* result = Last;
|
||||
void* ptr = First;
|
||||
void* ptr2 = To_address_uy47kg.Invoke(&ptr);
|
||||
llvm_memset_p0_i64.Invoke(ptr2, 0, unchecked((long)To_address_uy47kg.Invoke(&result) - (long)ptr2), isVolatile: false);
|
||||
return result;
|
||||
}
|
||||
}
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
using AssetRipper.Conversions.FastPng.Helpers;
|
||||
using AssetRipper.Conversions.FastPng.Intrinsics.Implemented;
|
||||
|
||||
namespace AssetRipper.Conversions.FastPng.GlobalFunctions;
|
||||
|
||||
[MangledName("??$_Zero_range@PEAI@std@@YAPEAIQEAI0@Z")]
|
||||
[DemangledName("unsigned int * __cdecl std::_Zero_range<unsigned int *>(unsigned int *const, unsigned int *const)")]
|
||||
[CleanName("Zero_range")]
|
||||
internal static partial class Zero_range_mqchde
|
||||
{
|
||||
[return: NativeType("unsigned int *")]
|
||||
public unsafe static void* Invoke([MangledName("_First")][NativeType("unsigned int *const")] void* First, [MangledName("_Last")][NativeType("unsigned int *const")] void* Last)
|
||||
{
|
||||
void* result = Last;
|
||||
void* ptr = First;
|
||||
void* ptr2 = To_address_vfzm44.Invoke(&ptr);
|
||||
llvm_memset_p0_i64.Invoke(ptr2, 0, unchecked((long)To_address_vfzm44.Invoke(&result) - (long)ptr2), isVolatile: false);
|
||||
return result;
|
||||
}
|
||||
}
|
||||
Loaded 100 of 516 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user