p-x9 / MachOKit

🔬 A Swift library for parsing mach-o files to obtain various information.
https://p-x9.github.io/MachOKit/documentation/machokit/
MIT License
77 stars 6 forks source link

Conforms `Symbols` sequence to the `RandomAccessCollection` protocol #68

Closed p-x9 closed 7 months ago

p-x9 commented 7 months ago

Currently, only the Sequence protocol is compliant. Therefore, to access a symbol at an index, it is necessary to convert it to an Array or other format. In fact, it is possible to access a symbol at a specific index directly by specifying an offset equal to the size of nlist.