///Save key-value as a key-value pair
///
/// # Example
///
/// ```no_run
/// # use ontio_std::runtime;
/// let key = "key";
/// let value = "value";
/// runtime::storage_write(key.as_bytes(), value.as_bytes());
/// ```
///
Save key-value as a key-value pair
Save key - value as a key - value pair
pub fn storage_write(key: &[u8], val: &[u8]) {
    unsafe {
        env::ontio_storage_write(key.as_ptr(), key.len() as u32, val.as_ptr(), val.len() as u32);
    }
}
pub fn storage_write ( key : & [ u8 ] , val : & [ u8 ] ) { unsafe { env :: ontio_storage_write ( key . as_ptr ( ) , key . len ( ) as u32 , val . as_ptr ( ) , val . len ( ) as u32 ) ; } }
Save key-value as a key-value pair
Save key - value as a key - value pair
key
&[u8]
val
&[u8]
example
None
use ontio_std::runtime;
None