terraria-cpp2il-methodrecon v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches

◆ Compress()

unsafe void Terraria.Map.WorldMapChunk.Compress ( byte * srcData,
long srcLength,
[Out] long resultLength )
inline

Definition at line 114 of file WorldMapChunk.cs.

115 {
116 int num = 1;
117 if (num == 0)
118 {
119 }
120 if (num == 0)
121 {
122 }
123 if (num == 0)
124 {
125 }
126 byte[] compressedData = this.CompressedData;
127 int num2;
128 byte[] compressedData3;
129 long num3;
130 if (num2 == 0)
131 {
133 if (num2 == 0)
134 {
135 byte[] compressedData2 = this.CompressedData;
136 if (compressedData == null)
137 {
138 }
139 Debug.LogWarning("Failed resizing buffer");
141 return;
142 }
143 }
144 else
145 {
146 if (compressedData3 == null)
147 {
148 }
149 Debug.LogError("Failed");
150 num3 = 0L;
151 }
152 if (compressedData3 != null)
153 {
154 }
155 if (num3 == 0L)
156 {
157 return;
158 }
159 throw new OutOfMemoryException();
160 }
class f__AnonymousType0<< Count > j__TPar
static void LogWarning(object message)
Definition Debug.cs:117
static void LogError(object message)
Definition Debug.cs:62

References Terraria.Map.WorldMapChunk.CompressedData, j__TPar, System.L, UnityEngine.Debug.LogError(), and UnityEngine.Debug.LogWarning().