terraria-cpp2il v1.4.4.9
Terraria mobile dump, with CallAnalysis (see source code). Dump with reconstucted method: https://infinitynichto.github.io/terraria-cpp2il-methodrecon
Loading...
Searching...
No Matches
FileCompressor.cs
Go to the documentation of this file.
1using System;
4using Ionic.Zlib;
5using UnityEngine;
6
7[global::Cpp2ILInjected.Token(Token = "0x200006E")]
8public static class FileCompressor
9{
10 [global::Cpp2ILInjected.Token(Token = "0x6000268")]
11 [global::Cpp2ILInjected.Address(RVA = "0x70F514", Offset = "0x70F514", Length = "0xAC")]
12 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(FileCompressor), Member = "CompressFile", MemberParameters = new object[]
13 {
14 typeof(string),
15 typeof(byte[]),
16 typeof(ref int)
17 }, ReturnType = typeof(byte[]))]
18 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(FileCompressor), Member = "DecompressFile", MemberParameters = new object[]
19 {
20 typeof(string),
21 typeof(byte[])
22 }, ReturnType = typeof(byte[]))]
23 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 2)]
24 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(string), Member = "EndsWith", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(bool))]
25 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 3)]
26 private static bool CanCompress(string filename)
27 {
28 throw null;
29 }
30
31 [global::Cpp2ILInjected.Token(Token = "0x6000269")]
32 [global::Cpp2ILInjected.Address(RVA = "0x70F5C0", Offset = "0x70F5C0", Length = "0xBC")]
33 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
34 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(FileCompressor), Member = "DecompressFile", MemberParameters = new object[]
35 {
36 typeof(string),
37 typeof(byte[])
38 }, ReturnType = typeof(byte[]))]
39 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
40 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(BitConverter), Member = "ToInt32", MemberParameters = new object[]
41 {
42 typeof(byte[]),
43 typeof(int)
44 }, ReturnType = typeof(int))]
45 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
46 private static bool HasCompressionHeader(byte[] inputData, out int decompressedLength)
47 {
48 throw null;
49 }
50
51 [global::Cpp2ILInjected.Token(Token = "0x600026A")]
52 [global::Cpp2ILInjected.Address(RVA = "0x70F67C", Offset = "0x70F67C", Length = "0x194")]
53 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
54 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(FileCompressor), Member = "DecompressFile", MemberParameters = new object[]
55 {
56 typeof(string),
57 typeof(byte[])
58 }, ReturnType = typeof(byte[]))]
59 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
60 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(ZlibCodec), Member = ".ctor", MemberParameters = new object[] { typeof(CompressionMode) }, ReturnType = typeof(void))]
61 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(ZlibCodec), Member = "Inflate", MemberParameters = new object[] { typeof(FlushType) }, ReturnType = typeof(int))]
62 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Array), Member = "Copy", MemberParameters = new object[]
63 {
66 typeof(int)
67 }, ReturnType = typeof(void))]
68 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Debug), Member = "LogError", MemberParameters = new object[] { typeof(object) }, ReturnType = typeof(void))]
69 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 18)]
70 private static byte[] Decompress(byte[] inputData, int outputSize)
71 {
72 throw null;
73 }
74
75 [global::Cpp2ILInjected.Token(Token = "0x600026B")]
76 [global::Cpp2ILInjected.Address(RVA = "0x70F810", Offset = "0x70F810", Length = "0x168")]
77 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
78 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(FileCompressor), Member = "CompressFile", MemberParameters = new object[]
79 {
80 typeof(string),
81 typeof(byte[]),
82 typeof(ref int)
83 }, ReturnType = typeof(byte[]))]
84 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
85 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(ZlibCodec), Member = ".ctor", MemberParameters = new object[] { typeof(CompressionMode) }, ReturnType = typeof(void))]
86 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(ZlibCodec), Member = "Deflate", MemberParameters = new object[] { typeof(FlushType) }, ReturnType = typeof(int))]
87 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(BitConverter), Member = "GetBytes", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(byte[]))]
88 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Array), Member = "Copy", MemberParameters = new object[]
89 {
91 typeof(int),
93 typeof(int),
94 typeof(int)
95 }, ReturnType = typeof(void))]
96 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 7)]
97 private static byte[] Compress(byte[] inputData, int fileLength)
98 {
99 throw null;
100 }
101
102 [global::Cpp2ILInjected.Token(Token = "0x600026C")]
103 [global::Cpp2ILInjected.Address(RVA = "0x70F978", Offset = "0x70F978", Length = "0xC8")]
104 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
105 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(FileCompressor), Member = "CanCompress", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(bool))]
106 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(FileCompressor), Member = "Compress", MemberParameters = new object[]
107 {
108 typeof(byte[]),
109 typeof(int)
110 }, ReturnType = typeof(byte[]))]
111 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(string), Member = "Concat", MemberParameters = new object[]
112 {
113 typeof(string),
114 typeof(string)
115 }, ReturnType = typeof(string))]
116 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Debug), Member = "LogError", MemberParameters = new object[] { typeof(object) }, ReturnType = typeof(void))]
117 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 3)]
118 public static byte[] CompressFile(string filename, byte[] inputFile, ref int fileLength)
119 {
120 throw null;
121 }
122
123 [global::Cpp2ILInjected.Token(Token = "0x600026D")]
124 [global::Cpp2ILInjected.Address(RVA = "0x70FA40", Offset = "0x70FA40", Length = "0x48")]
125 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
126 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(FileCompressor), Member = "CanCompress", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(bool))]
127 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(FileCompressor), Member = "HasCompressionHeader", MemberParameters = new object[]
128 {
129 typeof(byte[]),
130 typeof(ref int)
131 }, ReturnType = typeof(bool))]
132 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(FileCompressor), Member = "Decompress", MemberParameters = new object[]
133 {
134 typeof(byte[]),
135 typeof(int)
136 }, ReturnType = typeof(byte[]))]
137 public static byte[] DecompressFile(string filename, byte[] inputFile)
138 {
139 throw null;
140 }
141
142 [global::Cpp2ILInjected.Token(Token = "0x400021A")]
143 public static bool Disable;
144}
class f__AnonymousType0<< Count > j__TPar
static byte[] Compress(byte[] inputData, int fileLength)
static byte[] DecompressFile(string filename, byte[] inputFile)
static bool CanCompress(string filename)
static byte[] CompressFile(string filename, byte[] inputFile, ref int fileLength)
static bool Disable
static bool HasCompressionHeader(byte[] inputData, out int decompressedLength)
static byte[] Decompress(byte[] inputData, int outputSize)