Skip to content

Make memory regions and metadata easier to use. #86

Description

@marat1961

Make memory regions and metadata easier to use.

  1. 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.
  2. Now in the metadata there are two fields which are almost identical in purpose.
  • OnFree: TFreeProc;

  • FreeItem: TFreeItem;

  1. 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.
  2. The metadata description structure should be clear, readable, easy to create, and optimized for fast data processing.
  3. There should be methods for clearing, assigning, and exchanging values, comparing values, hash generation, and popular serialization methods would also be useful.
  4. Metadata on the type and methods for working with it can be placed in an auxiliary structure.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions