You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have a function str::from_cstr but it assumes that C string is null-terminated. The only way I see to build a string from a non-null-terminated buffer is using str::from_bytes(vec::from_buf()) which requires an extra copy of the string.
The text was updated successfully, but these errors were encountered:
We have a function str::from_cstr but it assumes that C string is null-terminated. The only way I see to build a string from a non-null-terminated buffer is using str::from_bytes(vec::from_buf()) which requires an extra copy of the string.
The text was updated successfully, but these errors were encountered: