Skip to main content

delete_from_word

Function delete_from_word 

Source
pub fn delete_from_word(
    current: U256,
    offset: usize,
    bytes: usize,
) -> Result<U256>
Expand description

Zero out a packed value in a storage slot at a given byte offset.

This is the inverse operation to insert_into_word, clearing the bits for a specific field while preserving other packed values in the slot.