(bytes: Vec<u8>)
| 587 | } |
| 588 | pub use alloc_crate::vec::Vec; |
| 589 | pub unsafe fn string_lift(bytes: Vec<u8>) -> String { |
| 590 | if cfg!(debug_assertions) { |
| 591 | String::from_utf8(bytes).unwrap() |
| 592 | } else { |
| 593 | String::from_utf8_unchecked(bytes) |
| 594 | } |
| 595 | } |
| 596 | pub unsafe fn cabi_dealloc(ptr: *mut u8, size: usize, align: usize) { |
| 597 | if size == 0 { |
| 598 | return; |
no outgoing calls
no test coverage detected