Re: Value Types for Java

2008-06-18 Thread Kenneth Russell
It's possible to do what you want with the existing NIO Buffer classes and a helper tool. GlueGen (http://gluegen.dev.java.net/) generates Java classes to access C data structures. These accessor classes wrap ByteBuffers and provide setter / getter methods for accessing the fields of the struct

Re: Value Types for Java

2008-06-18 Thread Ben Hutchison
Miles Sabin wrote: > On Wed, Jun 18, 2008 at 6:15 AM, Ben Hutchison <[EMAIL PROTECTED]> wrote: > >> Also, in terms of what it doesn't do: >> >> 1. Hard to see any way to extend to interpret a ByteBuffer region as an >> array of some value type, a feature ultimately needed for bulk interop >> wit

Re: Value Types for Java

2008-06-18 Thread Miles Sabin
On Wed, Jun 18, 2008 at 6:15 AM, Ben Hutchison <[EMAIL PROTECTED]> wrote: > Also, in terms of what it doesn't do: > > 1. Hard to see any way to extend to interpret a ByteBuffer region as an > array of some value type, a feature ultimately needed for bulk interop > with external IO/processes, I feel