Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
danieldk
on Jan 1, 2014
|
parent
|
context
|
favorite
| on:
The Lost Art of C Structure Packing
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.
wging
on Jan 1, 2014
|
next
[–]
Sorry, POD?
brendano
on Jan 1, 2014
|
parent
|
next
[–]
plain old data
wging
on Jan 5, 2014
|
root
|
parent
|
next
[–]
Ah, thanks.
finnw
on Jan 2, 2014
|
prev
[–]
Not the only way. You can interleave fields in a ByteBuffer.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: