BurntSushi / byteorder

Rust library for reading/writing numbers in big-endian and little-endian.
The Unlicense
984 stars 144 forks source link

Implement write_uXX_from #166

Closed luizirber closed 1 year ago

luizirber commented 4 years ago

This was discussed in #155, and makes my life much easier when serializing big vectors.

For now I only implemented write_u32_from, but if this looks OK I can go implement all the others too. I also created slice_to_u8 based on slice_to_u8_mut, but I don't think the comment about "modification of the binary representation of any Copy type" applies to it.