dissect.cstruct.tools.stubgen

Module Contents

Functions

Attributes

log

dissect.cstruct.tools.stubgen.log
dissect.cstruct.tools.stubgen.load_module(path: pathlib.Path, base: pathlib.Path) types.ModuleType | None
dissect.cstruct.tools.stubgen.generate_file_stub(path: pathlib.Path, base: pathlib.Path) str
dissect.cstruct.tools.stubgen.generate_cstruct_stub(cs: dissect.cstruct.cstruct.cstruct, module_prefix: str = '', cls_name: str = 'cstruct') str
dissect.cstruct.tools.stubgen.generate_typehint(type_: type[dissect.cstruct.types.BaseType], prefix: str = '', module_prefix: str = '') str
dissect.cstruct.tools.stubgen.generate_generic_stub(type_: type[dissect.cstruct.types.BaseType], name_prefix: str = '', cs_prefix: str = '', module_prefix: str = '') str
dissect.cstruct.tools.stubgen.generate_enum_stub(enum: type[dissect.cstruct.types.Enum | dissect.cstruct.types.Flag], name_prefix: str = '', cs_prefix: str = '', module_prefix: str = '') str
dissect.cstruct.tools.stubgen.generate_structure_stub(structure: type[dissect.cstruct.types.Structure], name_prefix: str = '', cs_prefix: str = '', module_prefix: str = '') str
dissect.cstruct.tools.stubgen.setup_logger(verbosity: int) None
dissect.cstruct.tools.stubgen.main() None