Skip to content

Commit b169ed1

Browse files
authored
fix: remove CRTP (#11)
* fix: InstructionTextLine * Instruction * Instructions * feat: add equals for InstructionInfo * feat: asm level Instruction * fix: simple name * feat: asm level to low level * feat: HighLevelILExpressions * x * feat: MediumLevelILInstructions for low il * feat: HighLevelILInstructions for low level * feat: high il fro medium * feat: MediumLevelILExpression * feat: add medium and high il map * fix: MustGetInstructions * fix: extra line * fix: remove blank * fix: remove CRTP * feat: ChooseVariable * ChoosePluginCommand * feat: ChoosePluginCommand * feat: ChoosePlatform * feat: HighlightColor * BNSetAutoFunctionParameterVariables * feat: SetAutoCanReturn * Callees * feat: ChooseCaller * x * xx * temp
1 parent bd6c0a0 commit b169ed1

File tree

178 files changed

+2041
-580
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

178 files changed

+2041
-580
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ bin/
55
dist/
66
build/
77
Folder.DotSettings.user
8+
temp/

Function/BNCreateAutoStackVariable.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ internal static extern void BNCreateAutoStackVariable(
2525
long offset ,
2626

2727
// BNTypeWithConfidence* type
28-
IntPtr type ,
28+
in BNTypeWithConfidence type ,
2929

3030
// const char* name
3131
string name

Function/BNCreateAutoVariable.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ internal static extern void BNCreateAutoVariable(
2222
IntPtr func ,
2323

2424
// BNVariable* _var
25-
IntPtr _var ,
25+
in BNVariable _var ,
2626

2727
// BNTypeWithConfidence* type
28-
IntPtr type ,
28+
in BNTypeWithConfidence type ,
2929

3030
// const char* name
3131
string name ,

Function/BNCreateUserStackVariable.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ internal static extern void BNCreateUserStackVariable(
2525
long offset ,
2626

2727
// BNTypeWithConfidence* type
28-
IntPtr type ,
28+
in BNTypeWithConfidence type ,
2929

3030
// const char* name
3131
string name

Function/BNCreateUserVariable.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ internal static extern void BNCreateUserVariable(
2222
IntPtr func ,
2323

2424
// BNVariable* _var
25-
IntPtr _var ,
25+
in BNVariable _var ,
2626

2727
// BNTypeWithConfidence* type
28-
IntPtr type ,
28+
in BNTypeWithConfidence type ,
2929

3030
// const char* name
3131
string name ,

Function/BNDeleteAutoStackVariable.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ internal static partial class NativeMethods
1313
[DllImport(
1414
"binaryninjacore",
1515
CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl,
16-
CharSet = CharSet.Ansi,
1716
EntryPoint = "BNDeleteAutoStackVariable"
1817
)]
1918
internal static extern void BNDeleteAutoStackVariable(
@@ -23,7 +22,6 @@ internal static extern void BNDeleteAutoStackVariable(
2322

2423
// int64_t offset
2524
long offset
26-
2725
);
2826
}
2927
}

Function/BNDeleteUserStackVariable.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ internal static partial class NativeMethods
1313
[DllImport(
1414
"binaryninjacore",
1515
CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl,
16-
CharSet = CharSet.Ansi,
1716
EntryPoint = "BNDeleteUserStackVariable"
1817
)]
1918
internal static extern void BNDeleteUserStackVariable(
@@ -23,7 +22,6 @@ internal static extern void BNDeleteUserStackVariable(
2322

2423
// int64_t offset
2524
long offset
26-
2725
);
2826
}
2927
}

Function/BNDeleteUserVariable.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ internal static partial class NativeMethods
1313
[DllImport(
1414
"binaryninjacore",
1515
CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl,
16-
CharSet = CharSet.Ansi,
1716
EntryPoint = "BNDeleteUserVariable"
1817
)]
1918
internal static extern void BNDeleteUserVariable(
@@ -22,8 +21,7 @@ internal static extern void BNDeleteUserVariable(
2221
IntPtr func ,
2322

2423
// BNVariable* _var
25-
IntPtr _var
26-
24+
in BNVariable _var
2725
);
2826
}
2927
}

Function/BNGetCalleeForAnalysis.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ internal static partial class NativeMethods
1313
[DllImport(
1414
"binaryninjacore",
1515
CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl,
16-
CharSet = CharSet.Ansi,
1716
EntryPoint = "BNGetCalleeForAnalysis"
1817
)]
1918
internal static extern IntPtr BNGetCalleeForAnalysis(
@@ -29,7 +28,6 @@ internal static extern IntPtr BNGetCalleeForAnalysis(
2928

3029
// bool exact
3130
bool exact
32-
3331
);
3432
}
3533
}

Function/BNGetInstructionHighlight.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ internal static partial class NativeMethods
1313
[DllImport(
1414
"binaryninjacore",
1515
CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl,
16-
CharSet = CharSet.Ansi,
1716
EntryPoint = "BNGetInstructionHighlight"
1817
)]
1918
internal static extern BNHighlightColor BNGetInstructionHighlight(
@@ -26,7 +25,6 @@ internal static extern BNHighlightColor BNGetInstructionHighlight(
2625

2726
// uint64_t addr
2827
ulong addr
29-
3028
);
3129
}
3230
}

0 commit comments

Comments
 (0)