Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

write_fixed_array_layout

Write fixed 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_fixed_array_layout

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