Skip to content

Commit

Permalink
chore: make context memory pub (#831)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse authored Oct 23, 2023
1 parent 11aa0c8 commit 47b38af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/interpreter/src/interpreter/shared_memory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -272,9 +272,9 @@ impl SharedMemory {
self.context_memory_mut().copy_within(src..src + len, dst);
}

/// Returns a reference to the memory of the current context.
/// Returns a reference to the memory of the current context, the active memory.
#[inline]
fn context_memory(&self) -> &[u8] {
pub fn context_memory(&self) -> &[u8] {
// SAFETY: access bounded by buffer length
unsafe {
self.buffer
Expand Down

0 comments on commit 47b38af

Please sign in to comment.