Include endianness in byte sequence and stream reader