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

Function split_nul

atomic-repository/src/wip.rs:565–571  ·  view source on GitHub ↗
(bytes: Vec<u8>)

Source from the content-addressed store, hash-verified

563}
564
565fn split_nul(bytes: Vec<u8>) -> Vec<Vec<u8>> {
566 bytes
567 .split(|byte| *byte == 0)
568 .filter(|path| !path.is_empty())
569 .map(<[u8]>::to_vec)
570 .collect()
571}
572
573fn os_args(args: &[&str]) -> Vec<OsString> {
574 args.iter().map(OsString::from).collect()

Callers 2

collect_tracked_pathsFunction · 0.85
changed_pathsFunction · 0.85

Calls 2

collectMethod · 0.45
is_emptyMethod · 0.45

Tested by

no test coverage detected