Hello,
given something like:
type
TSomeRecord = record
FirstField : word;
SecondField : byte;
ThirdField : qword;
end;
is there an "offset" function/operator that would directly return the offset of any one field in the above record ? for instance, offset(TSomeRecord.ThirdField) would return 8 (because of alignment.)
It is easy to calculate the offset as the difference of two pointers but, it would sure be nice if there is a direct way of getting it. That's my question, is there such a nice way of getting a field's offset ?
Thank you for your help.