Module pwasm_std::storage
[−]
[src]
Storage extensions for pwasm-std
Storage api is a key-value storage where both key and value are 32 bytes in len
Examples
use pwasm_std::hash::H256; storage::write(&H256::from([1u8; 32]), &[1u8; 32]); let _v = storage::read(&H256::from([1u8; 32]));
Functions
read |
Performs read from the storage. |
write |
Performs write to the storage |