AaronRobinsonMSFT / DNMD

Reimplementation of ECMA-335 metadata APIs
MIT License
16 stars 3 forks source link

Provide APIs to get a pointer/value out of a heap given a heap index #36

Closed jkoritzinsky closed 11 months ago

jkoritzinsky commented 11 months ago

Today, DNMD does not provide an operation to get a value from a heap at a given index. DNMD only provides an API to read a heap value from a column that points into a heap. This works for most scenarios, but the direct "read from the heap at this index" is needed for a few scenarios:

As the DNMD API exists today, these operations cannot be implemented.

jkoritzinsky commented 11 months ago

We discussed offline and came to the following conclusion:

jkoritzinsky commented 11 months ago

We will face a similar problem for all Portable PDB blobs that use compressed/uncompressed integers (as we don't expose the API to parse them).