4 messages in net.java.dev.jna.usersBuffers as structure fields
FromSent OnAttachments
Albert StrasheimMar 8, 2008 12:07 am 
Albert StrasheimMar 8, 2008 12:24 am 
Timothy WallMar 8, 2008 5:21 am 
Albert StrasheimMar 8, 2008 11:59 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Buffers as structure fieldsActions...
From:Albert Strasheim (full@gmail.com)
Date:Mar 8, 2008 12:07:07 am
List:net.java.dev.jna.users

Hello all,

While mapping a structure containing a float*, I tried to represent the field using a FloatBuffer.

However, this gives:

java.lang.IllegalArgumentException: the type "java.nio.FloatBuffer" is not supported as a structure field

when I run my test.

Is there a specific reason for this restriction or can I submit a feature request? To my mind, all Buffers can simply be treated like Pointers as far as structs go.

Cheers,

Albert