byte
byte copied to clipboard
A low-level, zero-copy, panic-free, binary serializer and deserializer. (parser and encoder)
This feature exists in the [bincode](https://docs.rs/bincode) crate, which simplifies reading from and writing to streams (like TCP) more comfortable. - [ ] Write data to stream (similar to [this](https://docs.rs/bincode/1.3.1/bincode/fn.serialize_into.html)) -...
In order to use the TryWrite trait, you would need to allocate a byte array of the correct size in advance. But how is it meant to be used? You...
It would be nice to be able to derive the traits `TryRead` and `TryWrite`. It would have to be done similar to [serde-derive](https://github.com/serde-rs/serde/tree/master/serde_derive), but will probably be a bit easier...
Currently, in the case of `u8` and `i8`, only `TryRead` and `TryWrite` are implemented. In reality, endianness doesn't matter for single byte values, and you end up writing verbose code...
Another PR with some of my changes. This adds derive macros for `TryRead` and `TryWrite`. Some notes: - supports borrowed types as long as the target of the macro has...
Another PR with some of my changes. This aims to make the `TryWrite` trait more convenient to use by adding an `alloc` feature, that enables the user to convert values...
Hi, thanks for this library, it's pretty neat. I intend to use a slightly changed version of it for a project, there are a few changes I made. I'd be...