de4dot-cex/de4dot.code/deobfuscators/ConfuserEx/x86/UnmanagedBuff.cs
ViR Dash 23477ccb5f Implemented ConfuserEx deobfuscator
x86 cflow and x86 constant decryption
Backport of LINQ (LinqBridge)
Shift left/right emulation fixes in de4dot core
Block class extended to hold additional information
2017-02-13 11:14:22 +02:00

19 lines
444 B
C#

using System;
using System.Runtime.InteropServices;
namespace de4dot.code.x86
{
public class UnmanagedBuffer
{
public readonly IntPtr Ptr = IntPtr.Zero;
public readonly int Length = 0;
public UnmanagedBuffer(byte[] data)
{
Ptr = Marshal.AllocHGlobal(data.Length);
Marshal.Copy(data, 0, Ptr, data.Length);
Length = data.Length;
}
}
}