diff options
| author | Mason Reed <mason@vector35.com> | 2025-06-09 23:29:00 -0400 |
|---|---|---|
| committer | Mason Reed <mason@vector35.com> | 2025-07-02 01:56:53 -0400 |
| commit | 8557a5e88a42b15970baa57c6cf2b56d068a4314 (patch) | |
| tree | e08b49c017cef0f6dc183d3dc7ece6dd8eb52773 /rust/src/binary_view.rs | |
| parent | 3001f77f0c8ed23ee004dd0765030f056b086984 (diff) | |
[Rust] Expose `BinaryView::from_raw`
Needed this for WARP plugin
Diffstat (limited to 'rust/src/binary_view.rs')
| -rw-r--r-- | rust/src/binary_view.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rust/src/binary_view.rs b/rust/src/binary_view.rs index c4aaf32d..394dda16 100644 --- a/rust/src/binary_view.rs +++ b/rust/src/binary_view.rs @@ -1968,7 +1968,7 @@ pub struct BinaryView { } impl BinaryView { - pub(crate) unsafe fn from_raw(handle: *mut BNBinaryView) -> Self { + pub unsafe fn from_raw(handle: *mut BNBinaryView) -> Self { debug_assert!(!handle.is_null()); Self { handle } } |
