Function concordium_std::prims::state_entry_write
source · pub unsafe extern "C" fn state_entry_write(
entry: u64,
start: *const u8,
length: u32,
offset: u32
) -> u32
Expand description
Write a part of the entry. The arguments are entry … entry id returned by state_iterator_next or state_create_entry start … where to read from Wasm memory length … length of the data to read offset … where to start writing in the entry The return value is
- u32::MAX if the entry does not exist (has been invalidated, or never existed). In this case no data is written.
- amount of data that was written. This is never more than length.