JuliaLang/julia — pull request #3617 by simonster (2013-07-04 04:30:42+00:00)
Title: Add fieldoffsets(DataType)

In order to efficiently map immutables to compound types in HDF5, it would be useful to know the layout of immutables in memory, but as far as I can tell, this isn't readily available to Julia. This PR adds a `fieldoffsets` function that returns the array of field offsets.