You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: crates/lune-std-ffi/src/carr.rs
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -9,8 +9,12 @@ use mlua::prelude::*;
9
9
10
10
// See: https://stackoverflow.com/a/43525176
11
11
12
+
// Padding after each field inside the struct is set to next field can follow the alignment.
13
+
// There is no problem even if you create a struct with n fields of a single type within the struct. Array adheres to the condition that there is no additional padding between each element. Padding to a struct is padding inside the struct. Simply think of the padding byte as a trailing unnamed field.
0 commit comments