tasm_lib::memory

Function encode_to_memory

Source
pub fn encode_to_memory<T: BFieldCodec>(
    memory: &mut HashMap<BFieldElement, BFieldElement>,
    address: BFieldElement,
    object: &T,
) -> BFieldElement
Expand description

Stores the encoding of the given object into memory at the given address, and returns the address of the first untouched memory cell after.