Packing and unpacking binary data

Converting the UInt8 array to a string is done by String(). I tried string() before but that was not the right one.

So now I am playing around with reinterpret but I need a way to deal with different endianness. So I guess I have to reverse the array if needed :confused:

julia> a[9:12]
4-element Array{UInt8,1}:
 0x00
 0x00
 0x00
 0x04

julia> reinterpret(Int32, a[9:12])
1-element Array{Int32,1}:
 67108864

julia> reinterpret(Int32, reverse(a[9:12]))
1-element Array{Int32,1}:
 4