[][src]Function cosmwasm::memory::build_slice

pub fn build_slice(data: &[u8]) -> Box<Slice>

build_slice returns a box of a slice, which can be sent over a call to extern note that this DOES NOT take ownership of the data, and we MUST NOT consume_slice the resulting data. The Box must be dropped (with scope), but not the data