On Tue, Oct 18, 2016 at 1:38 PM, Jérémy Béjanin <jeremy.beja...@gmail.com>

> I have seen the rem(a,b) function being used to recast numbers, but I was
> wondering if there was a way to recast arrays as in C.

Do note that this is undefined in standard C.

> Say, for example, that I have an array of bytes, is it possible to recast
> that array as UInt16, by taking pairs of bytes, or as Int32 by taking each
> consecutive 4 bytes?

reinterpret. Note the endianess dependency.

> Thanks,
> Jeremy

Reply via email to