(dst: *mut Light, max: i64)
| 398 | } |
| 399 | |
| 400 | pub 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 |
no test coverage detected