ElfSymbol.opEquals

bool opEquals(const ref ElfSymbol other) const

Compare two symbols by table identity.

Two symbols are equal when they refer to the same entry of the same symbol table with the same format interpretation: identical backing data (pointer and length), identical string table, same index, class, and byte order. Content-wise identical tables are distinct identities, which keeps equality consistent with toHash.

bool opEquals(const ElfSymbol other) const

Compare two symbols by table identity (value overload).

Parameters

otherSymbol to compare against.

Returns

true if both symbols share table identity and index.