Windbg Javascript Debugger: cast js byte array to a type?
Hello,
I have the following type:
struct A_TYPE {
UINT64 a;
UINT32 b;
UINT32 c[16];
}
and a code that looks like this:
var buf = new ArrayBuffer(128);
var numbers = new Uint8Array(buf);
//code that sets the numbers array
I have tried without success casting the numbers byte array to A_TYPE using the following:
//attempt 1:
var instantiatedType = host.typeSystem.marshalAs(numbers, srcName, typeName);
//attempt 2:
var type = host.getModuleType(srcName, typeName);
var instantiatedType = type.initialize(numbers) //initialize/constructor was a function i hoped to exist
Any ideas whether this functionality is already implemented? Sounds like a basic feature but i couldn't find it