[quote]Yes, that’s exactly the point of structs - directly modifying data in Buffers by mapping normal Java fields over them.
[/quote]
I was looking closer at your proposal Cas, and one of the problems I have is that the Struct class can’t have non-buffer data members. Wouldn’t we better off adding some kind of field access specifier or field metadata attribute - like @structmember, that indicates that a field is actually read from the buffer? The structmember attribute could be a little more flexible too - like specifying the number of bytes that get read from the buffer for that data member.
God bless,
-Toby Reyelts
