(source: *const u8, length: usize)
| 78 | /// `src_ptr`/`src_len` describe a host-owned UTF-8 buffer (the host frees it). |
| 79 | #[unsafe(no_mangle)] |
| 80 | pub 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`]. |
nothing calls this directly
no test coverage detected