MCPcopy Create free account
hub / github.com/Bloom-Engine/engine / copy_lights

Function copy_lights

native/watchos/src/scene.rs:400–407  ·  view source on GitHub ↗
(dst: *mut Light, max: i64)

Source from the content-addressed store, hash-verified

398}
399
400pub fn copy_lights(dst: *mut Light, max: i64) -> i64 {
401 if dst.is_null() || max <= 0 { return 0; }
402 with(|inner| {
403 let n = inner.lights.len().min(max as usize);
404 unsafe { std::ptr::copy_nonoverlapping(inner.lights.as_ptr(), dst, n); }
405 n as i64
406 })
407}
408
409/// Pointer + counts for a node's geometry arrays. Pointers are valid as long
410/// as the node exists and `update_geometry` isn't called on it — Swift reads

Callers 1

Calls 2

withFunction · 0.85
as_ptrMethod · 0.80

Tested by

no test coverage detected