Skip to main content Module fixgen Copy item path Source apply_fixes_c Apply C/C++ struct reorderings in-place, returning the modified source.
Each layout in layouts is looked up by name; matched structs are replaced
with the optimally-ordered definition. Replacements are applied back-to-front
so byte offsets remain valid. apply_fixes_go Apply Go struct reorderings in-place, returning the modified source. apply_fixes_rust Apply Rust struct reorderings in-place, returning the modified source. find_c_struct_span Find the byte range of a named struct/union in C/C++ source.
The range covers from struct/union Name through the closing };. find_go_struct_span Find the byte range of a named struct in Go source (type Name struct { ... }). find_rust_struct_span Find the byte range of a named struct in Rust source (struct Name { ... }). generate_c_fix Render a reordered C/C++ struct definition as source text. generate_go_fix Render a reordered Go struct definition as source text. generate_rust_fix Render a reordered Rust struct definition as source text. unified_diff Produce a unified diff between original and fixed source text.