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

◆ SetLength()

override void System.IO.UnmanagedMemoryStream.SetLength ( long value)
inlineinherited

Definition at line 342 of file UnmanagedMemoryStream.cs.

343 {
344 if (this._buffer == null)
345 {
346 this.EnsureNotClosed();
347 this.EnsureWriteable();
348 long capacity = this._capacity;
349 long num = 0L;
350 long num3;
351 long num2 = Interlocked.Read(num3);
352 Buffer.ZeroMemory(this._mem, num);
353 long num5;
355 return;
356 }
357 }
class f__AnonymousType0<< Count > j__TPar
static unsafe void ZeroMemory(byte *src, long len)
Definition Buffer.cs:30
static int Exchange(int location1, int value)
static long Read(long location)

References System.IO.UnmanagedMemoryStream._buffer, System.IO.UnmanagedMemoryStream._capacity, System.IO.UnmanagedMemoryStream._mem, System.capacity, System.IO.UnmanagedMemoryStream.EnsureNotClosed(), System.IO.UnmanagedMemoryStream.EnsureWriteable(), System.Threading.Interlocked.Exchange(), j__TPar, System.L, System.Threading.Interlocked.Read(), System.value, and System.Buffer.ZeroMemory().