@lower_getattr(types.MemoryView, 'nbytes')
def array_nbytes(context, builder, typ, value):
 arrayty = make_array(typ)
 array = arrayty(context, builder, value)
 dims = cgutils.unpack_tuple(builder, array.shape, typ.ndim)
 res = builder.mul(array.nitems, array.itemsize)
 return impl_ret_untracked(context, builder, typ, res)

@ lower_getattr ( types . MemoryView , 'nbytes' ) def array_nbytes ( context , builder , typ , value ) : arrayty = make_array ( typ ) array = arrayty ( context , builder , value ) dims = cgutils . unpack_tuple ( builder , array . shape , typ . ndim ) res = builder . mul ( array . nitems , array . itemsize ) return impl_ret_untracked ( context , builder , typ , res )
nbytes = size * itemsize .