-
Notifications
You must be signed in to change notification settings - Fork 142
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
libbpf-cargo: Make required_padding a free-standing function
Factor out a new free-standing function, required_padding(), that calculates the required padding for a type based on its inputs. Signed-off-by: Daniel Müller <[email protected]>
- Loading branch information
1 parent
8389524
commit 1b2a717
Showing
1 changed file
with
42 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters