mirror of
https://github.com/extism/extism.git
synced 2026-01-08 21:38:13 -05:00
fix: undo change to extism_memory_bytes left over from debugging (#519)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: zshipko <zshipko@users.noreply.github.com>
This commit is contained in:
@@ -517,5 +517,5 @@ pub unsafe fn extism_error_get() -> Pointer {
|
||||
/// Get the position of the allocator, this can be used as an indication of how many bytes are currently in-use
|
||||
#[no_mangle]
|
||||
pub unsafe fn extism_memory_bytes() -> Length {
|
||||
MemoryRoot::new().length.load(Ordering::Acquire)
|
||||
MemoryRoot::new().position.load(Ordering::Acquire)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user