4 messages in net.java.dev.jna.usersRe: [jna-users] Re: Buffers as struct...
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:Re: [jna-users] Re: Buffers as structure fieldsActions...
From:Timothy Wall (twal@dev.java.net)
Date:Mar 8, 2008 5:21:26 am
List:net.java.dev.jna.users

Put it in as a RFE. The tricky part is figuring out what to do on structure read.

When reading, you have to figure out whether to re-use a user-created buffer, create a new one, or re-use an auto-created one, or leave the field alone.

Non-direct buffers have a lot more corner cases.

On Mar 8, 2008, at 3:25 AM, Albert Strasheim wrote:

Hello,

I should probably mention that I am only interested in direct buffers at this point.

I would imagine that supporting direct buffers as a first step might be easier than implementing the general case.

Cheers,

Albert

On Sat, Mar 8, 2008 at 10:07 AM, Albert Strasheim <full@gmail.com> wrote:

Hello all,

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