//! Utilities to handle Wasm module entrypoint parameters for slices & strings
// want to require unsafe blocks in unsafe functions for clarity. tracking issue: https://github.com/rust-lang/rust/issues/71668
/// Interpret Wasm memory ptr and length as a byte slice
///
/// Compared to [`std::slice::from_raw_parts`] this handles null pointers, and requires null pointers for 0 length slice.
/// While [`std::slice::from_raw_parts`] asserts in debug on null pointers for 0 length slices.
///
/// # Safety
///
/// User has to make sure specified lifetime of slice doesnt extend past the lifetime of the memory pointed to
pub unsafe
/// Interpret Wasm memory ptr and length as a UTF-8 string
///
/// # Safety
///
/// User has to make sure specified lifetime of slice doesnt extend past the lifetime of the memory pointed to
pub unsafe