79413467

Date: 2025-02-05 01:51:34
Score: 0.5
Natty:
Report link

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
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Not Saying