Files
2026-04-08 23:40:05 +02:00

258 lines
7.7 KiB
C#

using System;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
using Unity.Collections;
using Unity.Collections.LowLevel.Unsafe;
using Unity.Mathematics;
using UnityEngine;
namespace ClusterLOD
{
// Token: 0x02000C9F RID: 3231
[Token(Token = "0x2000C9F")]
[StructLayout(3)]
public static class FastCopy
{
// Token: 0x06004DAF RID: 19887 RVA: 0x00121688 File Offset: 0x0011F888
[Token(Token = "0x6004DAF")]
[Address(RVA = "0x1B3A020", Offset = "0x1B38A20", VA = "0x181B3A020")]
private unsafe static void FastCopyVector2Array(NativeArray<float2> from, Vector2[] to, int count)
{
if (to == 0 || to.Length != 0)
{
}
int num = 0;
int num2 = UnsafeUtility.SizeOf<float2>();
int num3 = count * count;
void* ptr;
UnsafeUtility.MemCpy(num, ptr, (long)num3);
}
// Token: 0x06004DB0 RID: 19888 RVA: 0x001216B8 File Offset: 0x0011F8B8
[Token(Token = "0x6004DB0")]
[Address(RVA = "0x1B3A700", Offset = "0x1B39100", VA = "0x181B3A700")]
public unsafe static List<Vector2> GetTempVector2List(NativeArray<float2> from, int count, bool append)
{
if (FastCopy.tempVector2Array.Length < count)
{
FastCopy.tempVector2Array = new Vector2[count];
}
Vector2[] array = FastCopy.tempVector2Array;
if (array == 0 || array.Length != 0)
{
}
int num = 0;
int num2 = UnsafeUtility.SizeOf<float2>() * count;
void* ptr;
UnsafeUtility.MemCpy(num, ptr, (long)num2);
if (!append)
{
FastCopy.tempVector2List.Clear();
}
List<Vector2> list = FastCopy.tempVector2List;
return FastCopy.tempVector2List;
}
// Token: 0x06004DB1 RID: 19889 RVA: 0x00121728 File Offset: 0x0011F928
[Token(Token = "0x6004DB1")]
[Address(RVA = "0x1B3A0C0", Offset = "0x1B38AC0", VA = "0x181B3A0C0")]
private unsafe static void FastCopyVector3Array(NativeArray<float3> from, Vector3[] to, int count)
{
if (to == 0 || to.Length != 0)
{
}
int num = 0;
int num2 = UnsafeUtility.SizeOf<float3>();
int num3 = count * count;
void* ptr;
UnsafeUtility.MemCpy(num, ptr, (long)num3);
}
// Token: 0x06004DB2 RID: 19890 RVA: 0x00121758 File Offset: 0x0011F958
[Token(Token = "0x6004DB2")]
[Address(RVA = "0x1B3A980", Offset = "0x1B39380", VA = "0x181B3A980")]
public unsafe static List<Vector3> GetTempVector3List(NativeArray<float3> from, int count, bool append)
{
if (FastCopy.tempVector3Array.Length < count)
{
FastCopy.tempVector3Array = new Vector3[count];
}
Vector3[] array = FastCopy.tempVector3Array;
if (array == 0 || array.Length != 0)
{
}
int num = 0;
int num2 = UnsafeUtility.SizeOf<float3>() * count;
void* ptr;
UnsafeUtility.MemCpy(num, ptr, (long)num2);
if (!append)
{
FastCopy.tempVector3List.Clear();
}
List<Vector3> list = FastCopy.tempVector3List;
return FastCopy.tempVector3List;
}
// Token: 0x06004DB3 RID: 19891 RVA: 0x001217C8 File Offset: 0x0011F9C8
[Token(Token = "0x6004DB3")]
[Address(RVA = "0x1B3A160", Offset = "0x1B38B60", VA = "0x181B3A160")]
private unsafe static void FastCopyVector4Array(NativeArray<float4> from, Vector4[] to, int count)
{
if (to == 0 || to.Length != 0)
{
}
int num = 0;
int num2 = UnsafeUtility.SizeOf<float4>();
int num3 = count * count;
void* ptr;
UnsafeUtility.MemCpy(num, ptr, (long)num3);
}
// Token: 0x06004DB4 RID: 19892 RVA: 0x001217F8 File Offset: 0x0011F9F8
[Token(Token = "0x6004DB4")]
[Address(RVA = "0x1B3AC00", Offset = "0x1B39600", VA = "0x181B3AC00")]
public unsafe static List<Vector4> GetTempVector4List(NativeArray<float4> from, int count, bool append)
{
if (FastCopy.tempVector4Array.Length < count)
{
FastCopy.tempVector4Array = new Vector4[count];
}
Vector4[] array = FastCopy.tempVector4Array;
if (array == 0 || array.Length != 0)
{
}
int num = 0;
int num2 = UnsafeUtility.SizeOf<float4>() * count;
void* ptr;
UnsafeUtility.MemCpy(num, ptr, (long)num2);
if (!append)
{
FastCopy.tempVector4List.Clear();
}
List<Vector4> list = FastCopy.tempVector4List;
return FastCopy.tempVector4List;
}
// Token: 0x06004DB5 RID: 19893 RVA: 0x00121868 File Offset: 0x0011FA68
[Token(Token = "0x6004DB5")]
[Address(RVA = "0x1B39F80", Offset = "0x1B38980", VA = "0x181B39F80")]
private unsafe static void FastCopyIntArray(NativeArray<int> from, int[] to, int count)
{
if (to == 0 || to.Length != 0)
{
}
int num = 0;
int num2 = UnsafeUtility.SizeOf<int>();
int num3 = count * count;
void* ptr;
UnsafeUtility.MemCpy(num, ptr, (long)num3);
}
// Token: 0x06004DB6 RID: 19894 RVA: 0x00121898 File Offset: 0x0011FA98
[Token(Token = "0x6004DB6")]
[Address(RVA = "0x1B3A480", Offset = "0x1B38E80", VA = "0x181B3A480")]
public unsafe static List<int> GetTempIntList(NativeArray<int> from, int count, bool append)
{
if (FastCopy.tempIntArray.Length < count)
{
FastCopy.tempIntArray = new int[count];
}
int[] array = FastCopy.tempIntArray;
if (array == 0 || array.Length != 0)
{
}
int num = 0;
int num2 = UnsafeUtility.SizeOf<int>() * count;
void* ptr;
UnsafeUtility.MemCpy(num, ptr, (long)num2);
if (!append)
{
FastCopy.tempIntList.Clear();
}
List<int> list = FastCopy.tempIntList;
return FastCopy.tempIntList;
}
// Token: 0x06004DB7 RID: 19895 RVA: 0x00121908 File Offset: 0x0011FB08
[Token(Token = "0x6004DB7")]
[Address(RVA = "0x1B39EE0", Offset = "0x1B388E0", VA = "0x181B39EE0")]
private unsafe static void FastCopyColorArray(NativeArray<float4> from, Color[] to, int count)
{
if (to == 0 || to.Length != 0)
{
}
int num = 0;
int num2 = UnsafeUtility.SizeOf<float4>();
int num3 = count * count;
void* ptr;
UnsafeUtility.MemCpy(num, ptr, (long)num3);
}
// Token: 0x06004DB8 RID: 19896 RVA: 0x00121938 File Offset: 0x0011FB38
[Token(Token = "0x6004DB8")]
[Address(RVA = "0x1B3A200", Offset = "0x1B38C00", VA = "0x181B3A200")]
public unsafe static List<Color> GetTempColorList(NativeArray<float4> from, int count, bool append)
{
if (FastCopy.tempColorArray.Length < count)
{
FastCopy.tempColorArray = new Color[count];
}
Color[] array = FastCopy.tempColorArray;
if (array == 0 || array.Length != 0)
{
}
int num = 0;
int num2 = UnsafeUtility.SizeOf<float4>() * count;
void* ptr;
UnsafeUtility.MemCpy(num, ptr, (long)num2);
if (!append)
{
FastCopy.tempColorList.Clear();
}
List<Color> list = FastCopy.tempColorList;
return FastCopy.tempColorList;
}
// Token: 0x040039C4 RID: 14788
[Token(Token = "0x40039C4")]
private static Vector2[] tempVector2Array = new Vector2[1];
// Token: 0x040039C5 RID: 14789
[Token(Token = "0x40039C5")]
private static List<Vector2> tempVector2List = new List();
// Token: 0x040039C6 RID: 14790
[Token(Token = "0x40039C6")]
private static Vector3[] tempVector3Array = new Vector3[1];
// Token: 0x040039C7 RID: 14791
[Token(Token = "0x40039C7")]
private static List<Vector3> tempVector3List = new List();
// Token: 0x040039C8 RID: 14792
[Token(Token = "0x40039C8")]
private static Vector4[] tempVector4Array = new Vector4[1];
// Token: 0x040039C9 RID: 14793
[Token(Token = "0x40039C9")]
private static List<Vector4> tempVector4List = new List();
// Token: 0x040039CA RID: 14794
[Token(Token = "0x40039CA")]
private static int[] tempIntArray = new int[1];
// Token: 0x040039CB RID: 14795
[Token(Token = "0x40039CB")]
private static List<int> tempIntList = new List();
// Token: 0x040039CC RID: 14796
[Token(Token = "0x40039CC")]
private static Color[] tempColorArray = new Color[1];
// Token: 0x040039CD RID: 14797
[Token(Token = "0x40039CD")]
private static List<Color> tempColorList = new List();
}
}