ComparisonTest.compareFieldsAccess:670->assertBridJFaster:675 BridJ is not as fast as expected (1.0239646223916958x faster, expected > 1.1x faster)
Tests run: 455, Failures: 1, Errors: 0, Skipped: 7
I'm trying to use BridJ in a way that I'm not sure whether it is supported:
I have a 64 bit application. I get a byte array containing the memory of a 32 bit application through a debugger interface.
I'd like to use BridJ to parse the content of this byte array as C datatypes. I do this by using
Pointer.pointerToBytes().as(my_struct.class).get(). This technique works in a 32 bit application. But in a 64 bit application it does not, because BridJ uses the word size of the host application (64 bit) and I want to use the word size of the byte array (32 bit).
Can that be done? Is it possible to somehow switch the word size of BridJ manually, so that BridJ uses 32 bit words, even if it is run in a 64 bit application?