Casts a byte slice to a CStr without checking it for validity.
impl CStr {
unsafe fn from_bytes_unchecked(bytes: &[u8]) -> &CStr
}| Name | Description |
|---|---|
| bytes | The slice to be interpreted as a |
If the slice doesn't have exactly one null byte as its last entry, the behavior is undefined.