3 messages in net.java.dev.jna.usersRe: [jna-users] passing void** as inp...
FromSent OnAttachments
Albert StrasheimFeb 12, 2008 3:42 am 
Nick EvgenievFeb 12, 2008 4:09 am 
Timothy WallFeb 12, 2008 5:32 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] passing void** as input parameterActions...
From:Timothy Wall (twal@dev.java.net)
Date:Feb 12, 2008 5:32:19 am
List:net.java.dev.jna.users

It depends on the meaning of "byte**". If you're expecting a pointer back from the call, use PointerByReference. If "byte**" indicates indexed data (e.g. an array of pointer to byte), then you'll need to configure memory that reflects the expected data layout. If it's a multi-dimensional byte array, then you can use a single allocated Memory block (optionally using a custom PointerType to represent "byte**" with the Memory as its Pointer value).

On Feb 12, 2008, at 7:09 AM, Nick Evgeniev wrote:

Hi,

literally i need to map byte** as *input* parameter. so how do I pass my java byte[]? I've tried byte[][] { bytearray }. but got UnsupportedType Exception from jna..