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

Function report

plugins/ast/python/src/lib.rs:150–159  ·  view source on GitHub ↗

Copy `bytes` into a fresh host-owned allocation and pack (ptr << 32) | len.

(bytes: &[u8])

Source from the content-addressed store, hash-verified

148
149/// Copy `bytes` into a fresh host-owned allocation and pack (ptr << 32) | len.
150unsafe fn report(bytes: &[u8]) -> u64 {
151 let length = bytes.len();
152 let pointer = alloc(length);
153
154 unsafe {
155 core::ptr::copy_nonoverlapping(bytes.as_ptr(), pointer, length);
156 }
157
158 ((pointer as u64) << 32) | (length as u64)
159}
160
161// ─── output shapes ───
162

Callers 2

describeFunction · 0.70
parse_and_thenFunction · 0.70

Calls 1

allocFunction · 0.70

Tested by

no test coverage detected