News for hackers. Stuff that matters.
Re:The Lost Art of C Structure Packing by danieldk on Wednesday January 01, 2014 @03:20PM (#6996406)
In fact, in Java this is the only way to simulate structs as POD rather than paying for the overhead of an array of objects.
Re:The Lost Art of C Structure Packing by wging on Wednesday January 01, 2014 @04:18PM (#6996736)
Sorry, POD?
Re:The Lost Art of C Structure Packing by brendano on Wednesday January 01, 2014 @04:26PM (#6996778)
plain old data
Re:The Lost Art of C Structure Packing by wging on Saturday January 04, 2014 @09:35PM (#7014204)
Ah, thanks.
Re:The Lost Art of C Structure Packing by finnw on Thursday January 02, 2014 @04:49PM (#7002561)
Not the only way. You can interleave fields in a ByteBuffer.