Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upSerializing strings as C-Style strings (null-terminated) #238
Comments
|
I don't think this makes sense for bincode. Rust strings are not null terminated and can even contain null bytes. I could see this making sense for cross-language compat if Rust strings couldn't have null bytes, but since they can other languages would need to do processing anyways. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Can you serialize the string
"Test"as"Test\00"using bincode?It doesn't matter which string type it is, but it's preferable to not implement a new string type in rust