Add getInitializedUInt32Array() method

This commit is contained in:
de4dot 2012-02-05 18:55:48 +01:00
parent d6ff8b515d
commit c8c4e3341c

View File

@ -123,6 +123,17 @@ namespace de4dot.code.deobfuscators {
return resultArray;
}
public static uint[] getInitializedUInt32Array(int arraySize, MethodDefinition method, ref int newarrIndex) {
var resultArray = getInitializedInt32Array(arraySize, method, ref newarrIndex);
if (resultArray == null)
return null;
var ary = new uint[resultArray.Length];
for (int i = 0; i < ary.Length; i++)
ary[i] = (uint)resultArray[i];
return ary;
}
public static Value[] getInitializedArray(int arraySize, MethodDefinition method, ref int newarrIndex, Code stelemOpCode) {
var resultValueArray = new Value[arraySize];