Make memory regions and metadata easier to use.
- Unify way to describe metadata used in collections.
It would be convenient to have one object suitable for any type description.
Scalar type, record, tuple of types, maybe an array.
- Now in the metadata there are two fields which are almost identical in purpose.
-
OnFree: TFreeProc;
-
FreeItem: TFreeItem;
- Why not store metadata as a linked list of records: type, size, number of nested items, offset.
You could consider ways to store RTTI in Delphi, compilers.
- The metadata description structure should be clear, readable, easy to create, and optimized for fast data processing.
- There should be methods for clearing, assigning, and exchanging values, comparing values, hash generation, and popular serialization methods would also be useful.
- Metadata on the type and methods for working with it can be placed in an auxiliary structure.
Make memory regions and metadata easier to use.
It would be convenient to have one object suitable for any type description.
Scalar type, record, tuple of types, maybe an array.
OnFree: TFreeProc;
FreeItem: TFreeItem;
You could consider ways to store RTTI in Delphi, compilers.