7 messages in net.java.dev.jna.usersRe: [jna-users] How do I map size_t i...
FromSent OnAttachments
John CaronOct 30, 2008 2:06 pm 
Kunal ShahOct 30, 2008 2:40 pm 
John CaronOct 30, 2008 2:57 pm 
Wayne MeissnerOct 30, 2008 3:27 pm 
John CaronOct 30, 2008 3:35 pm 
Timothy WallOct 31, 2008 4:51 am 
John CaronOct 31, 2008 12:04 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] How do I map size_t in C to Java?Actions...
From:John Caron (car@unidata.ucar.edu)
Date:Oct 30, 2008 2:57:39 pm
List:net.java.dev.jna.users

I guess on some systems, size_t might be 64 bits, so how can I tell from Java in
a portable way?

Kunal Shah wrote:

I believe it will be IntByReference since the comment says it's a length.

Thanks!

On Thu, Oct 30, 2008 at 4:06 PM, John Caron <car@unidata.ucar.edu <mailto:car@unidata.ucar.edu>> wrote:

prototype:

int nc_inq_att(int ncid, int varid, const char *name, nc_type *xtypep, size_t *lenp);

example:

int status; /* error status */ int ncid; /* netCDF ID */ int rh_id; /* variable ID */ nc_type vr_type; /* attribute types */ size_t vr_len; /* attribute lengths */

status = nc_inq_att (ncid, rh_id, "valid_range", &vr_type, &vr_len);

thanks for any help, very cool package!

--------------------------------------------------------------------- To unsubscribe, e-mail: user@jna.dev.java.net <mailto:user@jna.dev.java.net> For additional commands, e-mail: user@jna.dev.java.net <mailto:user@jna.dev.java.net>