public static int GetIATOffsetFromCode(this IExecutableBuilderResult result, int positionWithText, string library, string function) { return((int)(result.GetIATEntryOffsetToStartOfCode(library, function) - positionWithText)); }
public static Span <byte> GetCodeSectionBuffer(this IExecutableBuilderResult result) => result.GetSectionBuffer(".text");