pub unsafe fn read_fixed_for_move<T: AsFixedSizeBytes + StableType>(
ptr: StablePtr,
) -> TExpand description
Reads a StableType value that will move implementing AsFixedSizeBytes trait from stable memory.
See also read_fixed_for_reference.
This function creates an intermediate buffer of AsFixedSizeBytes::SIZE bytes,
reads bytes from stable memory into it, then deserializes this buffer into a value itself and
then sets its stable drop flag to on position.
§Safety
Make sure you’re reading from a valid memory block. All kinds of bad things can happen.
This function manages stable memory ownership, this value will be stable-dropped after it goes
out of scope. Make sure you treat it accordingly.