summaryrefslogtreecommitdiff
path: root/src/message.zig
Commit message (Collapse)AuthorAge
* Fix extra bytes in connection message.Robby Zambito2025-05-11
|
* Add comments and fix testsRobby Zambito2025-05-10
| | | | | | | Also added networkBytesAsValue and restored bytesAsValue. These are useful for treating the bytes from the network directly as a Message. Otherwise, the init function would overwrite the packet type and length to be correct. I would like the message handling to fail if the message body is incorrect.
* Use slice for init, and add better error sets.Robby Zambito2025-05-10
| | | | | 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).
* (no commit message)Robby Zambito2025-05-10
|
* (no commit message)Robby Zambito2025-05-10
|
* Remove bytesAsValueUncheckedRobby Zambito2025-05-10
| | | | Callers can instead use std.mem.bytesAsValue directly.
* Cleanup asBytes and test itRobby Zambito2025-05-10
|
* Simplify init interfaceRobby Zambito2025-05-10
|
* (no commit message)Robby Zambito2025-05-10
|
* Align the bytes instead of the structRobby Zambito2025-05-10
|
* (no commit message)Robby Zambito2025-05-10
|
* (no commit message)Robby Zambito2025-05-10
|
* (no commit message)Robby Zambito2025-05-10
|
* (no commit message)Robby Zambito2025-05-10
|
* (no commit message)Robby Zambito2025-05-10
|
* Break out the impl to a libRobby Zambito2025-04-13
This will make it easier to make a C library.