Are there any functions in the RTL to get the sizeof the type specified in
TTypeKind? https://www.freepascal.org/docs-html/rtl/typinfo/ttypekind.html
I'm truing to use record RTTI and I needed to know the size of the field in the
record.
Regards,
Ryan Joseph
___
Am 20.03.2020 um 08:32 schrieb Ryan Joseph via fpc-pascal:
Are there any functions in the RTL to get the sizeof the type specified in
TTypeKind? https://www.freepascal.org/docs-html/rtl/typinfo/ttypekind.html
I'm truing to use record RTTI and I needed to know the size of the field in the
recor
I'm going to loop through the fields of the record and get the size of each
field so I can serialize the record. Am I not on the right track?
-
Regards,
Ryan Joseph
--
Sent from: http://free-pascal-general.1045716.n5.nabble.com/
___
fpc-pa
I think what Ryan is asking about is how to find the size of the
variant part of TTypeData as used in the "case TTypeKind of" section. As in:
public
{$ifdef PROVIDE_ATTR_TABLE}
AttributeTable : PAttributeTable;
{$endif}
case TTypeKind of
tkUnKn