diff options
author | Sven Gothel <[email protected]> | 2011-07-20 08:14:40 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2011-07-20 08:14:40 +0200 |
commit | 8b3057585930357bb16546f584d998953b084034 (patch) | |
tree | 5d7ffb74a36da6076d05657f2867c68c47068c7b /src/java/jogamp | |
parent | 0a8e1566c766f3b5a5e71b5d80500034f1a614a8 (diff) |
FIX StructAccessor / JavaEmitter's struct-emitter: Using byte offsets
Problem:
typedef struct {
int8_t bits1; // +1 - 0
// +3 (p32)
int32_t id; // +4 - 4
int8_t bits2; // +1 - 8
// +3 (p32) -
int64_t long0; // +8 - 12
"longBuffer.get(<type-sized index>)" is invalid,
but "byteBuffer.getLong(<byte index>)" must be done.
The actual impl. doesn't matter, hence dropping the other nio type mappings is good.
FIXES 32bit unit test, works well (static) on 32/64 bit (unix).
TODO: Respect diff alignment for OS/ARCH either by offset tables for all, or runtime computing.
Diffstat (limited to 'src/java/jogamp')
0 files changed, 0 insertions, 0 deletions