6 messages in net.java.dev.jna.usersRe: [jna-users] how to set a pointer
FromSent OnAttachments
Glick, Gene (GE Indust, Security)Sep 19, 2007 2:02 pm 
Timothy WallSep 19, 2007 2:55 pm 
Glick, Gene (GE Indust, Security)Sep 20, 2007 9:00 am 
Albert StrasheimSep 20, 2007 9:23 am 
Timothy WallSep 20, 2007 9:30 am 
Glick, Gene (GE Indust, Security)Sep 20, 2007 11:23 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] how to set a pointerActions...
From:Timothy Wall (twal@dev.java.net)
Date:Sep 19, 2007 2:55:24 pm
List:net.java.dev.jna.users

Use ByteBuffer.wrap() and declare the argument type as "Buffer", if declaring the argument type as byte[] isn't appropriate in your case.

Pointer is kind of a fallback when nothing else really fits.

On Sep 19, 2007, at 5:02 PM, Glick, Gene (GE Indust, Security) wrote:

I have a java byte[] and need to make a pointer to it in jna. Creating a new Pointer seems easy enough, but how do I set the pointer to point at the byte[]?