/// Sets the value of an int ARRAY_VALUE block.
Sets the value of an int ARRAY_VALUE block.
Sets the value of an int ARRAY_VALUE block .
pub fn array_set_int_slot(&self, slot_index: usize, value: i64) -> Result<(), Error> {
        self.check_array_entry_type(BlockType::IntValue)?;
        self.check_array_index(slot_index)?;
        let type_size = self.array_entry_type_size()?;
        self.container.write_bytes(
            utils::offset_for_index(self.index + 1) + slot_index * type_size,
            &value.to_le_bytes(),
        );
        Ok(())
    }
pub fn array_set_int_slot ( & self , slot_index : usize , value : i64 ) -> Result < ( ) , Error > { self . check_array_entry_type ( BlockType :: IntValue ) ? ; self . check_array_index ( slot_index ) ? ; let type_size = self . array_entry_type_size ( ) ? ; self . container . write_bytes ( utils :: offset_for_index ( self . index + 1 ) + slot_index * type_size , & value . to_le_bytes ( ) , ) ; Ok ( ( ) ) }
Sets the value of an int ARRAY_VALUE block.
Sets the value of an int ARRAY_VALUE block .
&self
slot_index
usize
value
i64