Just check if it IS it's own BE/LE field.
def is_big_endian(t:type[ctypes._SimpleCData]): return t is t.__ctype_be__ # type: ignore def is_little_endian(t:type[ctypes._SimpleCData]): return t is t.__ctype_le__ # type: ignore