From 663225b7a25b36ab93fb008c20ddb316879f22fb Mon Sep 17 00:00:00 2001 From: Mason Reed Date: Sat, 10 May 2025 20:00:43 -0400 Subject: [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. --- rust/src/binary_view.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'rust/src/binary_view.rs') 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 = result::Result; pub type BinaryViewEventType = BNBinaryViewEventType; -- cgit v1.3.1