Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the purpose of the sorted bit vector field in the "~" Metadata header in a .NET assembly?

According to the Partition II metadata, it says that the valid field is a bitmask that notes which CLR metadata tables are present in a .NET executable--but what I can't figure out is what the "sorted" field is for--what is its significance, and what should I emit into this field when creating my own .NET portable executable images?

like image 583
plaureano Avatar asked Dec 05 '25 14:12

plaureano


1 Answers

I think the sorted field is just hinting if the specific metadata table is sorted or not (it's a bitfield just like valid).

This would allow an implemenation of a runtime to do a binary search on the table directly from the memmapped data.

like image 135
Foxfire Avatar answered Dec 08 '25 16:12

Foxfire



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!