note description: "Object Representing C natural 32 array" date: "$Date$" revision: "$Revision$" class WRAP_NATUAL_32_ARRAY inherit WRAPC_ARRAY create make_unshared, make_shared, make_new_unshared, make_new_shared feature {ANY} -- Access item alias "[]" (i: INTEGER): NATURAL_32 assign put -- Return the address of the `i'-th item require exists: exists valid_index: is_valid_index (i) do Result := read_natural_32 (i * item_size) end put (a_value: NATURAL_32; i: INTEGER) -- Put `a_value' at the `i'-th position in the array. require exists: exists valid_index: is_valid_index (i) do put_natural_32 (a_value, i * item_size) ensure written: item (i) = a_value end feature {NONE} -- Implementation item_size: INTEGER -- Size of one element -- In C thats: sizeof (void*) once Result := {PLATFORM}.natural_32_bytes end end