1
Fork 0
Commit Graph

7 Commits

Author SHA1 Message Date
Motiejus Jakštys ca28332126 add unit tests for padding 2022-02-19 16:04:13 +02:00
Motiejus Jakštys 13b75e8046 user packing 2022-02-19 11:35:29 +02:00
Motiejus Jakštys 93c6a1c12a rename shell_len_or_place to _idx 2022-02-18 20:36:32 +02:00
Motiejus Jakštys 2964c918cc remove user.zig dependency on shell.zig 2022-02-18 20:35:42 +02:00
Motiejus Jakštys da727113e5 filling packed user 2022-02-18 20:29:45 +02:00
Motiejus Jakštys eacfc08592 fix PackedUser test
It is 120 bits long. @sizeOf returns 128, because, I guess, it tries to
word-align it (not byte-align it).

We are OK with non-word-aligned user struct, since it will have an
arbitrary []u8 slice right after it with the string data. However,
byte-alignment is important.
2022-02-18 17:40:04 +02:00
Motiejus Jakštys 1fe23aa1e5 adding user 2022-02-18 17:35:01 +02:00