76d2c09c7d
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 12:35:32 -04:00
9280fd095f
2025-04-30 17:00:12 -04:00
b575ad9094
2025-04-30 14:43:19 -04:00
73d0a80851
Remove bytesAsValueUnchecked
...
Callers can instead use std.mem.bytesAsValue directly.
2025-04-30 13:46:55 -04:00
fdd3f29fba
Cleanup asBytes and test it
2025-04-30 13:46:55 -04:00
d0d0b83b57
Simplify init interface
2025-04-30 13:46:55 -04:00
bc3926bcca
2025-04-30 13:46:55 -04:00
6d4880fa6a
Align the bytes instead of the struct
2025-04-30 13:46:54 -04:00
5e22c2b2ef
2025-04-30 13:46:54 -04:00
5530ed3d77
2025-04-30 13:46:54 -04:00
66ea478617
2025-04-30 13:46:54 -04:00
08954b9f3d
2025-04-30 13:46:54 -04:00
8d404a7c8d
2025-04-30 13:46:54 -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