MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / os_str_bytes

Function os_str_bytes

atomic-repository/src/repository/operation.rs:5376–5379  ·  view source on GitHub ↗
(value: &OsStr)

Source from the content-addressed store, hash-verified

5374
5375#[cfg(unix)]
5376fn os_str_bytes(value: &OsStr) -> Vec<u8> {
5377 use std::os::unix::ffi::OsStrExt;
5378 value.as_bytes().to_vec()
5379}
5380
5381#[cfg(windows)]
5382fn os_str_bytes(value: &OsStr) -> Vec<u8> {

Callers 3

observe_pathFunction · 0.85
directory_content_hashFunction · 0.85
copy_entryFunction · 0.85

Calls 2

as_bytesMethod · 0.45
collectMethod · 0.45

Tested by

no test coverage detected