Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/SeaQL/FireDBG.for.Rust
/ os_str_bytes
Function
os_str_bytes
codelldb/adapter/crates/lldb/src/strings.rs:12–15 ·
view source on GitHub ↗
(s: &OsStr)
Source
from the content-addressed store, hash-verified
10
{
11
#[cfg(unix)]
12
fn os_str_bytes(s: &OsStr) -> &[u8] {
13
use std::os::unix::prelude::OsStrExt;
14
s.as_bytes()
15
}
16
#[cfg(windows)]
17
fn os_str_bytes(s: &OsStr) -> &[u8] {
18
s.to_str().unwrap().as_bytes()
Callers
1
with_cstr
Function · 0.85
Calls
2
as_bytes
Method · 0.80
to_str
Method · 0.80
Tested by
no test coverage detected