FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
sharp-binaryninja/Struct/BNFunctionViewType.cs at master · tinysec/sharp-binaryninja · GitHub
tinysec
/
sharp-binaryninja
Public
Notifications
You must be signed in to change notification settings
Fork
4
Star
22
Code
Issues
0
Pull requests
0
Discussions
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
sharp-binaryninja
/
Struct
/
BNFunctionViewType.cs
Copy path
More file actions
More file actions
Latest commit
History
History
History
57 lines (48 loc) · 1.18 KB
Breadcrumbs
sharp-binaryninja
/
Struct
/
BNFunctionViewType.cs
Copy path
File metadata and controls
57 lines (48 loc) · 1.18 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
using
System
;
using
System
.
Collections
.
Generic
;
using
System
.
Runtime
.
InteropServices
;
using
Microsoft
.
Win32
.
SafeHandles
;
namespace
BinaryNinja
{
[
StructLayout
(
LayoutKind
.
Sequential
)
]
public
unsafe
struct
BNFunctionViewType
{
/// <summary>
/// BNFunctionGraphType type
/// </summary>
internal
FunctionGraphType
type
;
/// <summary>
/// const char* name
/// </summary>
internal
IntPtr
name
;
}
public
sealed
class
FunctionViewType
:
INativeWrapperEx
<
BNFunctionViewType
>
{
public
FunctionGraphType
Type
{
get
;
set
;
}
=
FunctionGraphType
.
NormalFunctionGraph
;
public
string
Name
{
get
;
set
;
}
=
string
.
Empty
;
public
FunctionViewType
(
)
{
}
public
FunctionViewType
(
FunctionGraphType
type
,
string
name
=
""
)
{
this
.
Type
=
type
;
this
.
Name
=
name
;
}
static
FunctionViewType
FromNative
(
BNFunctionViewType
native
)
{
return
new
FunctionViewType
(
)
{
Type
=
native
.
type
,
Name
=
UnsafeUtils
.
ReadAnsiString
(
native
.
name
)
}
;
}
public
BNFunctionViewType
ToNativeEx
(
ScopedAllocator
allocator
)
{
return
new
BNFunctionViewType
(
)
{
type
=
this
.
Type
,
name
=
allocator
.
AllocAnsiString
(
this
.
Name
)
,
}
;
}
}
}
Back
|
FazBrowse Home
|
New Git URL