I am porting MATLAB code to read a binary file for which the endianness is encoded in the first byte of the file. The MATLAB code opens the file to read the first byte, and reopens the file with `fopen` which takes as one of the arguments the endianness. What is the Julian equivalent? So far I have `endian(read(stream, T))` where endian is either ntoh or ltoh?
Thank you, michele
