Skip to main content

reverse_array

Function reverse_array 

Source
pub fn reverse_array(view: &V2TypedArrayView) -> *mut u8
Expand description

Produce a reversed copy of view. Kind-generic over the 14 V2ElemType variants. For heap-element variants (String / Decimal / TypedObject) the new array’s pointers share the same heap targets as the source; each is retained per-element so both arrays own valid shares.

Allocator + stamp shape mirrors clone_array; only the per-element copy loop differs (reverse iteration).