Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

write_array_layout

Write array layout model record to the world storage.

Arguments

  • model - the model selector.
  • key - the model record key.
  • values - the model record values.
  • offset - the start of model record values in the values parameter.
  • item_layout - the model record layout (temporary a Span because of type recursion issue).

Fully qualified path: dojo::storage::layout::write_array_layout

pub fn write_array_layout(
    model: felt252, key: felt252, values: Span<felt252>, ref offset: u32, item_layout: Span<Layout>,
)