add array field generation support

This commit is contained in:
2025-10-15 23:56:04 +05:30
parent 2b3c81affa
commit c22d85ceb8
4 changed files with 92 additions and 20 deletions

View File

@ -240,6 +240,7 @@ class DependencyNode:
size_of_field = ctypes.sizeof(processing_field.type)
return size_of_field
elif processing_field.type.__module__ == "vmlinux":
#TODO: does not take into account offset calculation when not array but has type size
if processing_field.ctype_complex_type is not None:
if issubclass(processing_field.ctype_complex_type, ctypes.Array):
if processing_field.containing_type.__module__ == ctypes.__name__: