2 messages in net.java.dev.jna.usersRe: [jna-users] mapping simple (i thi...
FromSent OnAttachments
Paul MooreMar 31, 2008 12:43 pm 
Timothy WallMar 31, 2008 12:50 pm 
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] mapping simple (i think) c structActions...
From:Timothy Wall (twal@dev.java.net)
Date:Mar 31, 2008 12:50:57 pm
List:net.java.dev.jna.users

On Mar 31, 2008, at 3:43 PM, Paul Moore wrote:

struct data { size_t len; void * buff; }

I cant work out how to declare this as an input param (and I will probably have the same iss for out params too) the void * points to a raw byte buffer. saying byte[] gets the data passed inline, not as a pointer.

com.sun.jna.Memory will work; declare the buff field as Pointer and assign it a chunk of memory the size you need.