Function concordium_std::prims::state_delete_prefix
source · pub unsafe extern "C" fn state_delete_prefix(
key_start: *const u8,
key_length: u32
) -> u32
Expand description
Delete a prefix in the tree, that is, delete all parts of the tree that have the given key as prefix. Returns
- 0 if the tree was locked and thus deletion failed.
- 1 if the tree was not locked, but the key points to an empty part of the tree
- 2 if a part of the tree was successfully deleted