Endian independent communication protocol generator