Can reinterpret be told what endian the data is?

Hello, i was curious if there is anyway to use reinterpret on a UInt8 vector but flip the endianness of the interpretation?
If it cant be done using the reinterpret function directly would anyone know how to flip the values after?

Julia has a variety of functions for this I/O and Network · The Julia Language. ntoh, hton, ltoh, and htol depending on what you want.

1 Like