diff options
| author | Mason Reed <mason@vector35.com> | 2025-05-10 20:00:43 -0400 |
|---|---|---|
| committer | Mason Reed <35282038+emesare@users.noreply.github.com> | 2025-05-12 17:45:24 -0400 |
| commit | 663225b7a25b36ab93fb008c20ddb316879f22fb (patch) | |
| tree | 6957b1be6aa9d07b7344af0acbb907c64e6748b1 /rust/src/binary_view.rs | |
| parent | 7e32ee8b629e3e4f8d061cbe0729ff961b3502d7 (diff) | |
[Rust] Move `BinaryReader` and `BinaryWriter` into `binary_view` module
Both of these are associated directly to a `BinaryView` and only exist as accessors onto it.
Diffstat (limited to 'rust/src/binary_view.rs')
| -rw-r--r-- | rust/src/binary_view.rs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/rust/src/binary_view.rs b/rust/src/binary_view.rs index 65bab463..1aa97891 100644 --- a/rust/src/binary_view.rs +++ b/rust/src/binary_view.rs @@ -26,7 +26,6 @@ use binaryninjacore_sys::*; use crate::architecture::{Architecture, CoreArchitecture}; use crate::base_detection::BaseAddressDetection; use crate::basic_block::BasicBlock; -use crate::binary_view::memory_map::MemoryMap; use crate::component::Component; use crate::confidence::Conf; use crate::data_buffer::DataBuffer; @@ -66,6 +65,12 @@ use std::{result, slice}; // TODO : general reorg of modules related to bv pub mod memory_map; +pub mod reader; +pub mod writer; + +pub use memory_map::MemoryMap; +pub use reader::BinaryReader; +pub use writer::BinaryWriter; pub type Result<R> = result::Result<R, ()>; pub type BinaryViewEventType = BNBinaryViewEventType; |
