Recentlyish I've wanted to write a string and have it length-prefixed, but cstrings still exist, yeah?
~string_style length-prefixed
How I believe Rust holds strings. Some int size (configurable?) and then the bytes of the string. Although Rust uses char I think, which is distinctly not a byte here so maybe a bad example.
~string_style null-terminated
Classic cstring style. The entire string and then one 0x00 to end it
~string_style raw(no-style?)
Just the bytes here. This is how it currently works.
Recentlyish I've wanted to write a string and have it length-prefixed, but cstrings still exist, yeah?
~string_style length-prefixed
How I believe Rust holds strings. Some int size (configurable?) and then the bytes of the string. Although Rust useschar
I think, which is distinctly not a byte here so maybe a bad example.~string_style null-terminated
Classic cstring style. The entire string and then one 0x00 to end it~string_style raw
(no-style
?) Just the bytes here. This is how it currently works.