Skip to content

Commit f677a01

Browse files
committed
add as_ptr to trait AllocBytes, fix 2 impls; add pub fn get_bytes_unchecked_raw in allocation.rs; add pub fn get_alloc_bytes_unchecked_raw[_mut] in memory.rs
1 parent 74cf63c commit f677a01

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/alloc_bytes.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,4 +108,8 @@ impl AllocBytes for MiriAllocBytes {
108108
fn as_mut_ptr(&mut self) -> *mut u8 {
109109
self.ptr
110110
}
111+
112+
fn as_ptr(&self) -> *const u8 {
113+
self.ptr
114+
}
111115
}

0 commit comments

Comments
 (0)