twall/jna — Issue #53: UniChar on 64bit machine fail
Author: axet
Created: 2012-02-06 11:29:12+00:00
State: open

Hello

I'm using jna to get some mac native data from system core functions.

I found JNA unable to retrive UniChar buffers encoded as 16 bit unicode string.

Real memory block i read from function is

[97, 0, 98, 0, 99, 0] == ["abc"]

but string decoded by Memory.getString(0,true) = "ac"

I'm assuing it does 32 bit unicode char length.