Thanks, not sure how I missed that...

On Tuesday, October 18, 2016 at 1:55:58 PM UTC-4, Yichao Yu wrote:
>
>
>
> On Tue, Oct 18, 2016 at 1:38 PM, Jérémy Béjanin <jeremy....@gmail.com 
> <javascript:>> wrote:
>
>> 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