Skip to content

Commit

Permalink
Move the "get MethodDefSig from a MethodRefSig" functionality into dn…
Browse files Browse the repository at this point in the history
…md::interfaces (#45)

Co-authored-by: Aaron Robinson <[email protected]>
  • Loading branch information
jkoritzinsky and AaronRobinsonMSFT authored Dec 5, 2023
1 parent 6fd8b66 commit 4711215
Show file tree
Hide file tree
Showing 9 changed files with 421 additions and 387 deletions.
1 change: 0 additions & 1 deletion src/dnmd/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ set(SOURCES
query.c
streams.c
tables.c
sig.c
write.c
)

Expand Down
274 changes: 0 additions & 274 deletions src/dnmd/sig.c

This file was deleted.

7 changes: 0 additions & 7 deletions src/inc/dnmd.h
Original file line number Diff line number Diff line change
Expand Up @@ -476,13 +476,6 @@ md_range_result_t md_find_range_from_cursor(mdcursor_t begin, col_index_t idx, u
bool md_find_token_of_range_element(mdcursor_t element, mdToken* tk);
bool md_find_cursor_of_range_element(mdcursor_t element, mdcursor_t* cursor);

bool md_is_field_sig(uint8_t const* sig, size_t sig_len);

// Create the equivalent MethodDefSig (II.23.2.1) from a MethodRefSig (II.23.2.2).
// ref_sig is a pointer to a MethodRefSig blob.
// If the return value is true, def_sig will be a pointer to malloc-d memory containing the MethodDefSig for the MethodRefSig.
bool md_create_methoddefsig_from_methodrefsig(uint8_t const* ref_sig, size_t ref_sig_len, uint8_t** def_sig, size_t* def_sig_len);

// Given a cursor, resolve any indirections to the final cursor or return the original cursor if it does not point to an indirection table.
// Returns true if the cursor was not an indirect cursor or if the indirection was resolved, or false if the cursor pointed to an invalid indirection table entry.
bool md_resolve_indirect_cursor(mdcursor_t c, mdcursor_t* target);
Expand Down
Loading

0 comments on commit 4711215

Please sign in to comment.