This is plus 4 bytes of reference counting. And, of course, the heapmanager overhead (which depends on the delphi version and uses a memory manager, which can easily be 12-16 bytes).
So this means:
- sizeof (element) * elementcount
- SizeOf (RefCount)
- current implementations: sizeof (integer) = 4
- SizeOf (elementnumber)
- FPC actually stores the highest element, not the element. I do not know about Delphi)
- current implementations: sizeof (integer) = 4
- overhead.