Function cosmwasm_std::storage_keys::namespace_with_key

source ·
pub fn namespace_with_key(namespace: &[&[u8]], key: &[u8]) -> Vec<u8> 
Expand description

Encodes a namespace + key to a raw storage key.

This is equivalent concat(to_length_prefixed_nested(namespace), key) but more efficient when the namespace serialization is not persisted because here we only need one vector allocation.