MCPcopy Create free account
hub / github.com/ValveSoftware/Proton / struct_needs_conversion

Function struct_needs_conversion

lsteamclient/gen_wrapper.py:905–922  ·  view source on GitHub ↗
(struct, wow64)

Source from the content-addressed store, hash-verified

903
904
905def struct_needs_conversion(struct, wow64):
906 name = canonical_typename(struct)
907 if name in EXEMPT_STRUCTS:
908 return False
909 if name in unique_structs:
910 return False
911 if name in MANUAL_STRUCTS:
912 return True
913 if name in PATH_CONV_STRUCTS:
914 return True
915
916 abis = find_struct_abis(name)
917 if abis is None: return False
918 if abis['w32'].needs_conversion(abis['u32']):
919 return True
920 if abis['w64'].needs_conversion(abis['u64']):
921 return True
922 return wow64
923
924
925def underlying_type(decl):

Callers 1

param_needs_conversionFunction · 0.70

Calls 3

canonical_typenameFunction · 0.70
find_struct_abisFunction · 0.70
needs_conversionMethod · 0.45

Tested by

no test coverage detected