Motiejus Jakštys
ab0562950c
add some guard rails w.r.t. padding
2022-02-21 13:54:35 +02:00
Motiejus Jakštys
f77d94e624
remove padding
2022-02-21 13:48:11 +02:00
Motiejus Jakštys
91849c128f
non-packed user iterator
2022-02-20 14:13:06 +02:00
Motiejus Jakštys
f2434e3d3c
working on iterator
2022-02-20 13:47:17 +02:00
Motiejus Jakštys
54ec710f10
wip iterator
2022-02-20 12:44:21 +02:00
Motiejus Jakštys
e54c153dd8
style
2022-02-20 09:47:47 +02:00
Motiejus Jakštys
9487194c95
simplify catch
2022-02-20 09:19:59 +02:00
Motiejus Jakštys
988ab9f6d4
update padded user alignment
2022-02-20 09:10:25 +02:00
Motiejus Jakštys
330db487ac
add roundUp assertion
2022-02-19 22:12:49 +02:00
Motiejus Jakštys
4dbc7b03bc
buffer is a pointer
2022-02-19 22:10:55 +02:00
Motiejus Jakštys
ae2d3d5443
generalize padding funcs
2022-02-19 21:23:33 +02:00
Motiejus Jakštys
2fc925923f
wip between-user padding
2022-02-19 18:20:50 +02:00
Motiejus Jakštys
4e45c6e5a9
simplify appendUser
2022-02-19 16:56:53 +02:00
Motiejus Jakštys
5f0d9bb176
rename username2user
2022-02-19 16:09:46 +02:00
Motiejus Jakštys
ca28332126
add unit tests for padding
2022-02-19 16:04:13 +02:00
Motiejus Jakštys
623060dac3
remove unnecessary cast
2022-02-19 15:50:13 +02:00
Motiejus Jakštys
fd1cab251d
fix shell index offsets
2022-02-19 15:48:51 +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
Motiejus Jakštys
411fb91fd1
test and README tiny updates
2022-02-18 17:26:35 +02:00
Motiejus Jakštys
80ec63b6a4
fix casting functions, add some tests
2022-02-18 15:28:04 +02:00
Motiejus Jakštys
44107bac51
adding simple header validation
2022-02-18 07:42:43 +02:00
Motiejus Jakštys
ed1e464305
header may err
2022-02-18 07:16:11 +02:00
Motiejus Jakštys
17344507e8
add a license
2022-02-18 07:16:02 +02:00
Motiejus Jakštys
8c8570e6d1
start with Header
2022-02-17 11:55:05 +02:00
Motiejus Jakštys
00cf0e4a66
hashmap: use getOrPut
2022-02-17 11:11:16 +02:00
Motiejus Jakštys
d9c8e69440
make Shell Writer work.
2022-02-17 10:54:39 +02:00
Motiejus Jakštys
e2bc4e6094
also add a failing shell test
2022-02-16 11:55:13 +02:00
Motiejus Jakštys
67e8a1d83c
add a test for resolving offsets
2022-02-16 11:48:53 +02:00
Motiejus Jakštys
e55d01ed15
fix memleak
2022-02-16 11:32:27 +02:00
Motiejus Jakštys
b43ba9c672
further along with popcon
2022-02-16 11:21:51 +02:00
Motiejus Jakštys
f584642cca
shellpop skeleton
2022-02-15 20:27:24 +02:00
Motiejus Jakštys
ce882b9086
use PackedIntArray
2022-02-14 14:55:54 +02:00
Motiejus Jakštys
4076e0ade1
fix header size
2022-02-14 14:01:21 +02:00
Motiejus Jakštys
053497cd0b
wording
2022-02-14 14:00:59 +02:00
Motiejus Jakštys
4a9c910ff7
add missing headers
2022-02-14 13:55:54 +02:00
Motiejus Jakštys
d422cdf61b
add missing fields
2022-02-14 13:37:10 +02:00
Motiejus Jakštys
c6bc383269
explain some optimizations
2022-02-14 13:05:33 +02:00
Motiejus Jakštys
f0d9d16cad
more nss docs
2022-02-14 10:55:49 +02:00
Motiejus Jakštys
1327587838
start with a full file structure
2022-02-13 18:01:44 +02:00
Motiejus Jakštys
b3446ef307
document global structure better
2022-02-13 10:42:40 +02:00
Motiejus Jakštys
0c33c27e56
reduce number of global shells
2022-02-12 23:06:03 +02:00
Motiejus Jakštys
bece7e9464
add remaining offsets
2022-02-12 23:01:16 +02:00
Motiejus Jakštys
7c63c7ab3b
more primitive types, start with File
2022-02-12 12:30:50 +02:00
Motiejus Jakštys
fe1ae55940
formatting
2022-02-12 10:14:37 +02:00
Motiejus Jakštys
84bb5f7fd7
update user record
2022-02-12 10:13:10 +02:00