245dab4909
Use slice for init, and add better error sets.
...
The slice sets us avoid allocating within the init function.
This means init can't fail, and it also makes it easier to stack allocate messages (slice an array buffer, instead of creating a stack allocator).
2025-05-10 21:46:53 -04:00
cde5c3626c
2025-05-10 21:46:53 -04:00
e84d1a2300
2025-05-10 21:46:53 -04:00
1b7d9bbb1a
Remove bytesAsValueUnchecked
...
Callers can instead use std.mem.bytesAsValue directly.
2025-05-10 21:46:53 -04:00
1512ec1a86
Cleanup asBytes and test it
2025-05-10 21:46:53 -04:00
f1dce257be
Simplify init interface
2025-05-10 21:46:53 -04:00
bcab1e4d00
2025-05-10 21:46:53 -04:00
0e8f016978
Align the bytes instead of the struct
2025-05-10 21:46:53 -04:00
fc53e87389
2025-05-10 21:46:53 -04:00
cbf554e853
2025-05-10 21:46:53 -04:00
775212013f
2025-05-10 21:46:53 -04:00
339ac5cfe5
2025-05-10 21:46:53 -04:00
eacfaffb6b
2025-05-10 21:46:53 -04:00
23f7ad8f94
Break out the impl to a lib
...
This will make it easier to make a C library.
2025-04-13 17:14:18 -04:00