Creates a CString by wrapping a vector without checking the vector for validity.
impl<H> CString<H>
where H: Allocator,
{
unsafe fn from_bytes_unchecked(bytes: Vec<u8, H>) -> CString<H>
}| Name | Description |
|---|---|
| bytes | The vector to be wrapped. |
If the vector doesn't have exactly one null byte as its last entry, the behavior is undefined.