MCPcopy Create free account
hub / github.com/Houseofmvps/codesight / parseRoutes

Function parseRoutes

plugins/ast/python/src/lib.rs:80–90  ·  view source on GitHub ↗
(source: *const u8, length: usize)

Source from the content-addressed store, hash-verified

78/// `src_ptr`/`src_len` describe a host-owned UTF-8 buffer (the host frees it).
79#[unsafe(no_mangle)]
80pub unsafe extern "C" fn parseRoutes(source: *const u8, length: usize) -> u64 {
81 unsafe {
82 parse_and_then(source, length, |body| {
83 let mut routes = Vec::new();
84
85 collect_routes(body, &mut routes);
86
87 routes
88 })
89 }
90}
91
92/// # Safety
93/// See [`parseRoutes`].

Callers

nothing calls this directly

Calls 2

collect_routesFunction · 0.85
parse_and_thenFunction · 0.70

Tested by

no test coverage detected