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

Function bytes_to_string

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

Source from the content-addressed store, hash-verified

1139}
1140
1141#[inline]
1142fn bytes_to_string(bytes: &[u8]) -> String {
1143 // All slice boundaries land on ASCII delimiters, so the content is valid
1144 // UTF-8 whenever the input string was; lossy keeps us total anyway.
1145 String::from_utf8_lossy(bytes).into_owned()
1146}
1147
1148fn 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