Support inheritance for endian :both