summaryrefslogtreecommitdiff
path: root/rust/src/binary_view.rs
diff options
context:
space:
mode:
authorBrian Potchik <brian@vector35.com>2025-11-23 20:23:44 -0500
committerBrian Potchik <brian@vector35.com>2025-11-23 20:23:44 -0500
commitccd33ad78bb48bc22068e8c8ec4b1b4b11664617 (patch)
tree3a89fd90d1e46c77fd677ec0c93cc464e04e57cd /rust/src/binary_view.rs
parentcd6747223935581ae422a9825a389d89f329b5fd (diff)
Add IsOffsetReadOnlySemantics API.
Diffstat (limited to 'rust/src/binary_view.rs')
-rw-r--r--rust/src/binary_view.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/rust/src/binary_view.rs b/rust/src/binary_view.rs
index 4fb07ded..0f2deb56 100644
--- a/rust/src/binary_view.rs
+++ b/rust/src/binary_view.rs
@@ -471,7 +471,7 @@ pub trait BinaryViewExt: BinaryViewBase {
/// Consults the [`Section`]'s current [`crate::section::Semantics`] to determine if the
/// offset has read only semantics.
fn offset_has_read_only_semantics(&self, offset: u64) -> bool {
- unsafe { BNIsOffsetExternSemantics(self.as_ref().handle, offset) }
+ unsafe { BNIsOffsetReadOnlySemantics(self.as_ref().handle, offset) }
}
fn image_base(&self) -> u64 {