MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / bytes_to_string

Function bytes_to_string

codegraph-kernel/src/cfnptr.rs:1123–1127  ·  view source on GitHub ↗
(bytes: &[u8])

Source from the content-addressed store, hash-verified

1121}
1122
1123#[inline]
1124fn bytes_to_string(bytes: &[u8]) -> String {
1125 // All slice boundaries land on ASCII delimiters, so the content is valid
1126 // UTF-8 whenever the input string was; lossy keeps us total anyway.
1127 String::from_utf8_lossy(bytes).into_owned()
1128}
1129
1130fn dedup_in_order(v: Vec<String>) -> Vec<String> {

Callers 6

init_bodyFunction · 0.85
array_table_bodyFunction · 0.85
scan_field_assignFunction · 0.85
scan_includesFunction · 0.85
parse_struct_fields_rawFunction · 0.85
push_strFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected