Add fieldoffsets(DataType)
Merge pull request #3617 from simonster/fieldoffsets

Add fieldoffsets(DataType)