Thread: JNA
View Single Post
  #1   Spotlight this post!  
Unread 12-02-2010, 23:34
ideasrule's Avatar
ideasrule ideasrule is offline
Registered User
FRC #0610 (Coyotes)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2009
Location: Toronto
Posts: 108
ideasrule is a jewel in the roughideasrule is a jewel in the roughideasrule is a jewel in the roughideasrule is a jewel in the rough
JNA

A few questions about the JNA:

(1) Is there any comprehensive tutorial/explanation of it, aside from the API?
(2) What's the difference between a BlockingFunction and a Function?
(3) How do you pass a double to a native function that takes in 6 arguments? Do you simply do this:

Pointer my_double=new Pointer(8);
my_double.setDouble(0,0.8);
native_func.call6(blah,blah,blah,blah,blah,my_doub le.address().toUWord().toPrimitive());