summaryrefslogtreecommitdiff
path: root/src/message.zig
Commit message (Collapse)AuthorAge
* Fix extra bytes in connection message.Robby Zambito6 days
|
* Add comments and fix testsRobby Zambito6 days
| | | | | | | 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 Zambito6 days
| | | | | 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 Zambito6 days
|
* (no commit message)Robby Zambito6 days
|
* Remove bytesAsValueUncheckedRobby Zambito6 days
| | | | Callers can instead use std.mem.bytesAsValue directly.
* Cleanup asBytes and test itRobby Zambito6 days
|
* Simplify init interfaceRobby Zambito6 days
|
* (no commit message)Robby Zambito6 days
|
* Align the bytes instead of the structRobby Zambito6 days
|
* (no commit message)Robby Zambito6 days
|
* (no commit message)Robby Zambito6 days
|
* (no commit message)Robby Zambito6 days
|
* (no commit message)Robby Zambito6 days
|
* (no commit message)Robby Zambito6 days
|
* Break out the impl to a libRobby Zambito2025-04-13
This will make it easier to make a C library.